public void Setup() { // code before running the unit test context = new AppDbContext(dbContextOptions); context.Database.EnsureCreated(); SeedDatabase(); publishersServices = new PublishersServices(context); }
public PublishersController(PublishersServices publishersServices, ILogger <PublishersController> logger) { _publishersServices = publishersServices; _logger = logger; }