public CapitalPlansController(ICapitalPlanService capitalPlanService, IUnitOfWork unitOfWork) { _capitalPlanService = capitalPlanService ?? throw new ArgumentNullException(nameof(capitalPlanService)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); }
public void Setup() { _repository = Substitute.For <ICapitalPlanRepository>(); _service = new CapitalPlanService(_repository); }
public void Setup() { _service = Substitute.For <ICapitalPlanService>(); _unitOfWork = Substitute.For <IUnitOfWork>(); _controller = new CapitalPlansController(_service, _unitOfWork); }