Exemplo n.º 1
0
        public void Get_KnownId_ShouldReturnValue()
        {
            const string id    = "id";
            var          value = new Value {
                Content = "content"
            };

            using (SimpleStorageTestHelpers.StartService(port))
            {
                client.Put(id, value);
                var actual = client.Get(id);
                Assert.That(actual.Content, Is.EqualTo(value.Content));
            }
        }
Exemplo n.º 2
0
        public void Get_KnownId_ShouldReturnValue()
        {
            const string id    = "id";
            var          value = new Value {
                Content = "content"
            };

            using (WebApp.Start <Startup>(string.Format("http://+:{0}/", port)))
            {
                client.Put(id, value);
                var actual = client.Get(id);
                Assert.That(actual.Content, Is.EqualTo(value.Content));
            }
        }