Exemplo n.º 1
0
        public async Task GetOptions()
        {
            var root = await crest.GetRootAsync();

            var options = crest.QueryOptions(root);

            Assert.IsTrue(options.Representations.Any());
            var first = options.Representations.First();

            Assert.IsNotNull(first.AcceptType);
            Assert.IsNotNull(first.Verb);
            Assert.AreNotEqual(0, first.Version);
            Assert.IsNotNull(first.AcceptType.jsonDumpOfStructure);
            Assert.IsNotNull(first.AcceptType.Name);
        }