public void CanGetArtists() { using (var db = new StacksOfWaxDbContext()) { // Arrange var controller = new ArtistsController(db); // Act var result = controller.GetArtists() as OkNegotiatedContentResult<List<Artist>>; // Assert Assert.IsNotNull(result); Assert.IsNotNull(result.Content); Assert.IsTrue(result.Content.Any()); } }
public AlbumsControllerV2() { _dbContext = new StacksOfWaxDbContext(); }
public ArtistsController(StacksOfWaxDbContext db) { _db = db; }