public void InitializeTests()
        {
            this.dbContext = MockDbContext.GetDbContext();
            var mapper = MockAutoMapper.GetMapper();

            this.townsService     = new TownsService(dbContext, mapper);
            this.companiesService = new CompaniesService(dbContext, mapper, townsService);
        }
 public BaseService(EmployeesManagementContext dbContext, IMapper mapper)
 {
     this.DbContext = dbContext;
     this.Mapper    = mapper;
 }
 public ManagerController(EmployeesManagementContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public TownsService(EmployeesManagementContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }
 public EmployeeController(EmployeesManagementContext context) //here there is dependency injection
 {
     _context = context;
 }
 public CompaniesService(EmployeesManagementContext dbContext, IMapper mapper, ITownsService townsService)
     : base(dbContext, mapper)
 {
     this.townsService = townsService;
 }
Beispiel #7
0
 public ExperienceLevelsSecrvice(EmployeesManagementContext dbContext, IMapper mapper)
     : base(dbContext, mapper)
 {
 }