Fixed test

This commit is contained in:
Kiran Challa 2015-05-21 16:43:15 -07:00
parent ddd76e2f4d
commit d2f041def9
1 changed files with 2 additions and 2 deletions

View File

@ -144,9 +144,9 @@ namespace MusicStore.Controllers
Assert.NotNull(genre.Albums.SingleOrDefault(a => a.AlbumId == albumId));
Assert.Null(viewModel.Artist);
var cachedAlbum = cache.Get<Task<Album>>("album_1");
var cachedAlbum = cache.Get<Album>("album_1");
Assert.NotNull(cachedAlbum);
Assert.Equal(albumId, cachedAlbum.Result.AlbumId);
Assert.Equal(albumId, cachedAlbum.AlbumId);
}
private static Genre[] CreateTestGenres(int numberOfGenres, int numberOfAlbums, DbContext dbContext)