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; }
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; }
public ExperienceLevelsSecrvice(EmployeesManagementContext dbContext, IMapper mapper) : base(dbContext, mapper) { }