public void WhenSuggest_ThenOk() { // Arrange using (SimpleServer.Create(TestHelpers.BaseUrl, EventHandler)) { var client = new YouScribeClient(TestHelpers.BaseUrl); var request = client.CreateProductSuggestRequest(); // Act var results = request.GetSuggestAsync(1470).Result; // Assert Assert.Empty(request.Error.Messages); Assert.NotNull(results); Assert.NotEmpty(results); Assert.Equal("bouh", results.First().Title); } }
public void WhenSuggest_ThenOk() { // Arrange using (SimpleServer.Create(TestHelpers.BaseUrl, EventHandler)) { var client = new YouScribeClient(TestHelpers.BaseUrl); var request = client.CreateProductSuggestRequest(); // Act var results = request.GetSuggestAsync(1470).Result; // Assert Assert.Empty(request.Error.Messages); Assert.NotNull(results); Assert.NotEmpty(results); Assert.Equal("bouh", results.First().Title); } }