コード例 #1
0
        public void InitializeTests()
        {
            this.dbContext = MockDbContext.GetDbContext();
            var mapper = MockAutoMapper.GetMapper();

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