public void GetConstructedUri_NoParamaters_MatchesExpected() { var query = new GetCampaignMissions(); var uri = query.GetConstructedUri(); Assert.AreEqual("metadata/h5/metadata/campaign-missions", uri); }
public void GetConstructedUri_NoParamaters_MatchesExpected() { var query = new GetCampaignMissions(); var uri = query.GetConstructedUri(); Assert.AreEqual(BaseUri, uri); }
public async Task GetCampaignMissions_SchemaIsValid() { var campaignMissionsSchema = JSchema.Parse(File.ReadAllText(Config.CampaignMissionsJsonSchemaPath), new JSchemaReaderSettings { Resolver = new JSchemaUrlResolver(), BaseUri = new Uri(Path.GetFullPath(Config.CampaignMissionsJsonSchemaPath)) }); var query = new GetCampaignMissions() .SkipCache(); var jArray = await Global.Session.Get<JArray>(query.GetConstructedUri()); SchemaUtility.AssertSchemaIsValid(campaignMissionsSchema, jArray); }
public async Task GetCampaignMissions_SchemaIsValid() { var campaignMissionsSchema = JSchema.Parse(File.ReadAllText(Config.CampaignMissionsJsonSchemaPath), new JSchemaReaderSettings { Resolver = new JSchemaUrlResolver(), BaseUri = new Uri(Path.GetFullPath(Config.CampaignMissionsJsonSchemaPath)) }); var query = new GetCampaignMissions() .SkipCache(); var jArray = await Global.Session.Get <JArray>(query.GetConstructedUri()); SchemaUtility.AssertSchemaIsValid(campaignMissionsSchema, jArray); }