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

            var uri = query.GetConstructedUri();

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

            var uri = query.GetConstructedUri();

            Assert.AreEqual("metadata/h5/metadata/impulses", uri);
        }
Пример #3
0
        public void GetConstructedUri_NoParamaters_MatchesExpected()
        {
            var query = new GetImpulses();

            var uri = query.GetConstructedUri();

            Assert.AreEqual(BaseUri, uri);
        }
Пример #4
0
        public async Task GetImpulses_SchemaIsValid()
        {
            var impulsesSchema = JSchema.Parse(File.ReadAllText(Config.ImpulseJsonSchemaPath), new JSchemaReaderSettings
            {
                Resolver = new JSchemaUrlResolver(),
                BaseUri = new Uri(Path.GetFullPath(Config.ImpulseJsonSchemaPath))
            });

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

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

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

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

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

            SchemaUtility.AssertSchemaIsValid(impulsesSchema, jArray);
        }