Example #1
0
        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);
        }
Example #2
0
 public TimeRegistrationsController(TimeTrackingServiceContext context)
 {
     _context = context;
 }
 public ProjectsController(TimeTrackingServiceContext context)
 {
     _context = context;
 }