Пример #1
0
 public OrderController(IUserChain userChain, IItemService itemService, IOrderService orderService,
                        IMapper mapper)
 {
     _userChain    = userChain;
     _itemService  = itemService;
     _orderService = orderService;
     _mapper       = mapper;
 }
Пример #2
0
 public StudentHandler(IUserChain next, ISchoolService schoolService, IStudentService studentService,
                       ILogger <StudentHandler> logger)
 {
     _next           = next;
     _schoolService  = schoolService;
     _studentService = studentService;
     _logger         = logger;
 }
 public StudentHandlerTests()
 {
     _nextMock           = new Mock <IUserChain>();
     _schoolServiceMock  = new Mock <ISchoolService>();
     _studentServiceMock = new Mock <IStudentService>();
     _loggerMock         = new Mock <ILogger <StudentHandler> >();
     _handler            = new StudentHandler(_nextMock.Object, _schoolServiceMock.Object, _studentServiceMock.Object,
                                              _loggerMock.Object);
 }
Пример #4
0
 public MeController(IUserChain userChain, IMapper mapper, IStudentService studentService)
 {
     _userChain      = userChain;
     _mapper         = mapper;
     _studentService = studentService;
 }
 public BarmanHandlerTests()
 {
     _dbContext  = new DbContextFactory().DbContext;
     _loggerMock = new Mock <ILogger <BarmanHandler> >();
     _handler    = new BarmanHandler(_dbContext, _loggerMock.Object);
 }