Пример #1
0
        public void GetConstructedUri_NoParamaters_MatchesExpected()
        {
            var query = new GetTeamColors();

            var uri = query.GetConstructedUri();

            Assert.AreEqual("metadata/h5/metadata/team-colors", uri);
        }
Пример #2
0
        public void GetConstructedUri_NoParamaters_MatchesExpected()
        {
            var query = new GetTeamColors();

            var uri = query.GetConstructedUri();

            Assert.AreEqual(BaseUri, uri);
        }
Пример #3
0
        public void GetConstructedUri_NoParameters_MatchesExpected()
        {
            var query = new GetTeamColors();

            var uri = query.GetConstructedUri();

            Assert.AreEqual("metadata/h5/metadata/team-colors", uri);
        }
Пример #4
0
        public async Task GetTeamColors_SchemaIsValid()
        {
            var teamColorsSchema = JSchema.Parse(File.ReadAllText(Config.TeamColorsJsonSchemaPath), new JSchemaReaderSettings
            {
                Resolver = new JSchemaUrlResolver(),
                BaseUri  = new Uri(Path.GetFullPath(Config.TeamColorsJsonSchemaPath))
            });

            var query = new GetTeamColors()
                        .SkipCache();

            var jArray = await Global.Session.Get <JArray>(query.GetConstructedUri());

            SchemaUtility.AssertSchemaIsValid(teamColorsSchema, jArray);
        }
Пример #5
0
        public async Task GetTeamColors_SchemaIsValid()
        {
            var teamColorsSchema = JSchema.Parse(File.ReadAllText(Config.TeamColorsJsonSchemaPath), new JSchemaReaderSettings
            {
                Resolver = new JSchemaUrlResolver(),
                BaseUri = new Uri(Path.GetFullPath(Config.TeamColorsJsonSchemaPath))
            });

            var query = new GetTeamColors()
               .SkipCache();

            var jArray = await Global.Session.Get<JArray>(query.GetConstructedUri());

            SchemaUtility.AssertSchemaIsValid(teamColorsSchema, jArray);
        }