public TestEmployeerOrderApiController()
 {
     _unitOfWork = new UnitOfWork(new ApplicationDbContext());
     _userManager = new ApplicationUserManager(new UserStore<User>(_unitOfWork.GetContext()));
     _weekOrderMenuService = new OrderMenuService(_unitOfWork.RepositoryAsync<WeekOrderMenu>());
     _weekMenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _weekPaimentService = new WeekPaimentService(_unitOfWork.RepositoryAsync<WeekPaiment>());
 }
 public EmployeeOrderApiController(IUnitOfWorkAsync unitOfWorkAsync)
 {
     _unitOfWork = unitOfWorkAsync;
     _db = unitOfWorkAsync.GetContext();
     _weekMenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _orderMenuService = new OrderMenuService(_unitOfWork.RepositoryAsync<WeekOrderMenu>());
     _weekPaimentService = new WeekPaimentService(_unitOfWork.RepositoryAsync<WeekPaiment>());
 }
 public TestEmployeerOrderApiController()
 {
     _unitOfWork           = new UnitOfWork(new ApplicationDbContext());
     _userManager          = new ApplicationUserManager(new UserStore <User>(_unitOfWork.GetContext()));
     _weekOrderMenuService = new OrderMenuService(_unitOfWork.RepositoryAsync <WeekOrderMenu>());
     _weekMenuService      = new MenuForWeekService(_unitOfWork.RepositoryAsync <MenuForWeek>());
     _weekPaimentService   = new WeekPaimentService(_unitOfWork.RepositoryAsync <WeekPaiment>());
 }
 public EmployeeOrderApiController(IUnitOfWorkAsync unitOfWorkAsync)
 {
     _unitOfWork         = unitOfWorkAsync;
     _db                 = unitOfWorkAsync.GetContext();
     _weekMenuService    = new MenuForWeekService(_unitOfWork.RepositoryAsync <MenuForWeek>());
     _orderMenuService   = new OrderMenuService(_unitOfWork.RepositoryAsync <WeekOrderMenu>());
     _weekPaimentService = new WeekPaimentService(_unitOfWork.RepositoryAsync <WeekPaiment>());
 }