public void EnsureGetNewReleasesForGenreThrowsExceptionForNullCallback()
 {
     IMusicClient client = new MusicClient("test", "gb", new MockApiRequestHandler(Resources.product_parse_tests));
     client.GetNewReleasesForGenre(null, "pop", Category.Album);
 }
 public void EnsureGetNewReleasesForGenreThrowsExceptionForNullGenre()
 {
     IMusicClient client = new MusicClient("test", "gb", new MockApiRequestHandler(Resources.product_parse_tests));
     Genre nullGenre = null;
     client.GetNewReleasesForGenre((ListResponse<Product> result) => { }, nullGenre, Category.Album);
 }
 public void EnsureGetNewReleasesForGenreThrowsExceptionForUnsupportedCategory()
 {
     IMusicClient client = new MusicClient("test", "gb", new MockApiRequestHandler(Resources.product_parse_tests));
     client.GetNewReleasesForGenre((ListResponse<Product> result) => { }, "rock", Category.Unknown);
 }
 public void EnsureGetNewReleasesForGenreReturnsItems()
 {
     IMusicClient client = new MusicClient("test", "gb", new MockApiRequestHandler(Resources.product_parse_tests));
     client.GetNewReleasesForGenre(this.ValidateNewReleasesResponse, new Genre() { Id = "rock" }, Category.Album);
     client.GetNewReleasesForGenre(this.ValidateNewReleasesResponse, "rock", Category.Album);
 }