public TestTimeTrackingService() { var builder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appsettings.json"); _configuration = builder.Build(); _options = new DbContextOptionsBuilder <TimeTrackingServiceContext>().UseSqlServer(_configuration.GetConnectionString("TimeTrackingServiceContext")).Options; _context = new TimeTrackingServiceContext(_options); }
public TimeRegistrationsController(TimeTrackingServiceContext context) { _context = context; }
public ProjectsController(TimeTrackingServiceContext context) { _context = context; }