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)); } }
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)); } }