public AccountController(IFixItTrackerRepository dataContext,
                          UserManager <IdentityUser> userMgr,
                          SignInManager <IdentityUser> signInMgr)
 {
     _dataContext  = dataContext;
     userManager   = userMgr;
     signInManager = signInMgr;
 }
Пример #2
0
        public void GetRepairs_ReturnsNotFound()
        {
            _fixItTrackerRepository = new UnitTestsRepository(noRepairs: true);
            _repairController       = new RepairController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());

            var okResult = _repairController.GetRepairs(null, null, null, null);

            Assert.IsType <NotFoundObjectResult>(okResult.Result);
        }
        public void GetItems_ReturnsNotFound()
        {
            _fixItTrackerRepository = new UnitTestsRepository(noItems: true);
            _itemController         = new ItemController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());

            var okResult = _itemController.GetItems();

            Assert.IsType <NotFoundObjectResult>(okResult.Result);
        }
Пример #4
0
 public RepairControllerTest()
 {
     _fixItTrackerRepository = new UnitTestsRepository();
     _repairController       = new RepairController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());
 }
Пример #5
0
 public RepairController(IFixItTrackerRepository dataContext, IMapper mapper)
 {
     _dataContext = dataContext;
     _mapper      = mapper;
 }
 public ItemControllerTest()
 {
     _fixItTrackerRepository = new UnitTestsRepository();
     _itemController         = new ItemController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());
 }
Пример #7
0
 public FaultControllerTest()
 {
     _fixItTrackerRepository = new UnitTestsRepository();
     _faultController        = new FaultController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());
 }
Пример #8
0
 public CustomerControllerTest()
 {
     _fixItTrackerRepository = new UnitTestsRepository();
     _customerController     = new CustomerController(_fixItTrackerRepository, UnitTestsMapping.GetMapper());
 }