public void Fact9PackageProfileEconomyPlusVsVIP() { PackageSearchProfile.RootObject packageSearchProfile = new PackageSearchProfile.RootObject(); PackageSearchProfile profile = new PackageSearchProfile(); var economyPlus = profile.EconomyPlus(); var vip = profile.VIP(); ID_nom pp = new ID_nom(); var resulteconomyPlusID = program.Post_zapros("https://apitest.suntigo.com/api/1/package/search", economyPlus, pp); var result2VIPID = program.Post_zapros("https://apitest.suntigo.com/api/1/package/search", vip, pp); var resulteconomyPlus = program.Get <PackageResultsProfile.RootObject>("https://apitest.suntigo.com/api/1/package/results", "RequestId", resulteconomyPlusID.requestId, "Language", "English"); var result2VIP = program.Get <PackageResultsProfile.RootObject>("https://apitest.suntigo.com/api/1/package/results", "RequestId", result2VIPID.requestId, "Language", "English"); Assert.True(!program.EqualsResults(resulteconomyPlus, result2VIP)); }
public void Fact9PackageProfileStudentVsEconomy() { PackageSearchProfile.RootObject packageSearchProfile = new PackageSearchProfile.RootObject(); PackageSearchProfile profile = new PackageSearchProfile(); var student = profile.Student(); var economy = profile.Economy(); ID_nom pp = new ID_nom(); var resultstudentID = program.Post_zapros("https://apitest.suntigo.com/api/1/package/search", student, pp); var result2economyID = program.Post_zapros("https://apitest.suntigo.com/api/1/package/search", economy, pp); var resultstudent = program.Get <PackageResultsProfile.RootObject>("https://apitest.suntigo.com/api/1/package/results", "RequestId", resultstudentID.requestId, "Language", "English"); var result2economy = program.Get <PackageResultsProfile.RootObject>("https://apitest.suntigo.com/api/1/package/results", "RequestId", result2economyID.requestId, "Language", "English"); Assert.True(!program.EqualsResults(resultstudent, result2economy)); }