public void Setup()
        {
            // code before running the unit test
            context = new AppDbContext(dbContextOptions);
            context.Database.EnsureCreated();

            SeedDatabase();

            publishersServices = new PublishersServices(context);
        }
Exemple #2
0
 public PublishersController(PublishersServices publishersServices, ILogger <PublishersController> logger)
 {
     _publishersServices = publishersServices;
     _logger             = logger;
 }