public TestBase(TestWebApplicationFactory <TestStartup> factory) { _factory = factory; Client = _factory.CreateClient(); Context = _factory.Server.Services.GetService(typeof(CurriculumVitaeDbContext)) as CurriculumVitaeDbContext; Context.Database.EnsureCreated(); }
public ContactsController(CurriculumVitaeDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }