public void GetConstructedUri_NoParamaters_MatchesExpected() { var query = new GetMaps(); var uri = query.GetConstructedUri(); Assert.AreEqual("metadata/h5/metadata/maps", uri); }
public void GetConstructedUri_NoParamaters_MatchesExpected() { var query = new GetMaps(); var uri = query.GetConstructedUri(); Assert.AreEqual("metadata/h5/metadata/maps", uri); }
public void GetConstructedUri_NoParamaters_MatchesExpected() { var query = new GetMaps(); var uri = query.GetConstructedUri(); Assert.AreEqual(BaseUri, uri); }
public async Task GetMaps_SchemaIsValid() { var mapsSchema = JSchema.Parse(File.ReadAllText(Config.MapJsonSchemaPath), new JSchemaReaderSettings { Resolver = new JSchemaUrlResolver(), BaseUri = new Uri(Path.GetFullPath(Config.MapJsonSchemaPath)) }); var query = new GetMaps() .SkipCache(); var jArray = await Global.Session.Get<JArray>(query.GetConstructedUri()); SchemaUtility.AssertSchemaIsValid(mapsSchema, jArray); }
public async Task GetMaps_SchemaIsValid() { var mapsSchema = JSchema.Parse(File.ReadAllText(Config.MapJsonSchemaPath), new JSchemaReaderSettings { Resolver = new JSchemaUrlResolver(), BaseUri = new Uri(Path.GetFullPath(Config.MapJsonSchemaPath)) }); var query = new GetMaps() .SkipCache(); var jArray = await Global.Session.Get <JArray>(query.GetConstructedUri()); SchemaUtility.AssertSchemaIsValid(mapsSchema, jArray); }