This commit is contained in:
@@ -139,7 +139,7 @@ namespace raven_integration
|
||||
SearchParameters.phrase = TEST_SEARCH_PHRASE;
|
||||
SearchParameters.nameOnly = true;
|
||||
SearchParameters.typeOnly = 0;//no type
|
||||
SearchParameters.maxResults=0;
|
||||
SearchParameters.maxResults = 0;
|
||||
a = await Util.PostAsync("Search", await Util.GetTokenAsync("SubContractorLimited"), SearchParameters.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
((JArray)a.ObjectResponse["data"]["searchResults"]).Count.Should().BeGreaterOrEqualTo(2);
|
||||
@@ -200,7 +200,7 @@ namespace raven_integration
|
||||
SearchParameters.phrase = TEST_SEARCH_PHRASE;
|
||||
SearchParameters.nameOnly = false;
|
||||
SearchParameters.typeOnly = 0;//no type
|
||||
SearchParameters.maxResults=0;
|
||||
SearchParameters.maxResults = 0;
|
||||
a = await Util.PostAsync("Search", await Util.GetTokenAsync("manager", "l3tm3in"), SearchParameters.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
@@ -530,10 +530,10 @@ namespace raven_integration
|
||||
|
||||
|
||||
|
||||
[Fact]
|
||||
[Fact]
|
||||
public async void SearchForSerialFieldShouldWork()
|
||||
{
|
||||
//CREATE A WIDGET
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("Serial search test WIDGET");
|
||||
D.dollarAmount = 1.11m;
|
||||
@@ -545,11 +545,11 @@ namespace raven_integration
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
long MatchWidgetInSerialId = a.ObjectResponse["data"]["id"].Value<long>();
|
||||
var MatchWidgetSerial = a.ObjectResponse["data"]["serial"].Value<uint>();
|
||||
|
||||
//TODO: get this from the return object
|
||||
string SerialSearch=MatchWidgetInSerialId.ToString();;
|
||||
|
||||
|
||||
//TODO: get this from the return object
|
||||
string SerialSearch = MatchWidgetSerial.ToString(); ;
|
||||
|
||||
|
||||
//Now see if can find those objects with a phrase search
|
||||
dynamic SearchParameters = new JObject();
|
||||
SearchParameters.phrase = SerialSearch;
|
||||
@@ -572,7 +572,7 @@ namespace raven_integration
|
||||
|
||||
//Ensure the expected items are returned
|
||||
MatchingIdList.Should().Contain(MatchWidgetInSerialId, "ShouldContainMatchWidgetInSerialId");
|
||||
|
||||
|
||||
|
||||
}//eot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user