public void GetConstructedUri_NoParameters_MatchesExpected() { var query = new GetWarzoneMatchDetails(); var uri = query.GetConstructedUri(); Assert.AreEqual("stats/h5/warzone/matches/", uri); }
public void GetConstructedUri_NoParameters_MatchesExpected() { var query = new GetWarzoneMatchDetails(); var uri = query.GetConstructedUri(); Assert.AreEqual("stats/h5/warzone/matches/", uri); }
public void GetConstructedUri_NoParamaters_MatchesExpected() { var query = new GetWarzoneMatchDetails(); var uri = query.GetConstructedUri(); Assert.AreEqual(BaseUri, uri); }
public void GetConstructedUri_ForMatchId_MatchesExpected(string guid) { var query = new GetWarzoneMatchDetails() .ForMatchId(new Guid(guid)); var uri = query.GetConstructedUri(); Assert.AreEqual($"stats/h5/warzone/matches/{guid}", uri); }
public void GetConstructedUri_ForMatchId_MatchesExpected(string guid) { var query = new GetWarzoneMatchDetails() .ForMatchId(new Guid(guid)); var uri = query.GetConstructedUri(); Assert.AreEqual($"stats/h5/warzone/matches/{guid}", uri); }
public async Task GetWarzoneMatchDetails_SchemaIsValid(string guid) { var weaponsSchema = JSchema.Parse(File.ReadAllText(Config.WarzoneMatchJsonSchemaPath), new JSchemaReaderSettings { Resolver = new JSchemaUrlResolver(), BaseUri = new Uri(Path.GetFullPath(Config.WarzoneMatchJsonSchemaPath)) }); var query = new GetWarzoneMatchDetails() .ForMatchId(new Guid(guid)); var jArray = await Global.Session.Get <JObject>(query.GetConstructedUri()); SchemaUtility.AssertSchemaIsValid(weaponsSchema, jArray); }
public async Task GetWarzoneMatchDetails_SchemaIsValid(string guid) { var weaponsSchema = JSchema.Parse(File.ReadAllText(Config.WarzoneMatchJsonSchemaPath), new JSchemaReaderSettings { Resolver = new JSchemaUrlResolver(), BaseUri = new Uri(Path.GetFullPath(Config.WarzoneMatchJsonSchemaPath)) }); var query = new GetWarzoneMatchDetails() .ForMatchId(new Guid(guid)) .SkipCache(); var jArray = await Global.Session.Get<JObject>(query.GetConstructedUri()); SchemaUtility.AssertSchemaIsValid(weaponsSchema, jArray); }