public void Setup() { _repository = Substitute.For <ICapitalPlanRepository>(); _service = new CapitalPlanService(_repository); }
public CapitalPlanService(ICapitalPlanRepository repository) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); }