public AccountController(IFixItTrackerRepository dataContext, UserManager <IdentityUser> userMgr, SignInManager <IdentityUser> signInMgr) { _dataContext = dataContext; userManager = userMgr; signInManager = signInMgr; }
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); }
public RepairControllerTest() { _fixItTrackerRepository = new UnitTestsRepository(); _repairController = new RepairController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); }
public RepairController(IFixItTrackerRepository dataContext, IMapper mapper) { _dataContext = dataContext; _mapper = mapper; }
public ItemControllerTest() { _fixItTrackerRepository = new UnitTestsRepository(); _itemController = new ItemController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); }
public FaultControllerTest() { _fixItTrackerRepository = new UnitTestsRepository(); _faultController = new FaultController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); }
public CustomerControllerTest() { _fixItTrackerRepository = new UnitTestsRepository(); _customerController = new CustomerController(_fixItTrackerRepository, UnitTestsMapping.GetMapper()); }