public void EnsureGetTopProductsForGenreThrowsExceptionForNullGenreId() { IMusicClient client = new MusicClient("test", "gb", new MockApiRequestHandler(Resources.product_parse_tests)); string nullGenreId = null; client.GetTopProductsForGenre((ListResponse<Product> result) => { }, nullGenreId, Category.Album); }
public void EnsureGetTopProductsForGenreReturnsItems() { IMusicClient client = new MusicClient("test", "gb", new MockApiRequestHandler(Resources.product_parse_tests)); client.GetTopProductsForGenre(this.ValidateTopProductsResponse, new Genre() { Id = "rock" }, Category.Album); client.GetTopProductsForGenre(this.ValidateTopProductsResponse, "rock", Category.Album); }