public void Setup() { _spendItemRepository = new FakeRepository <SpendItem>(); _userRepository = new FakeRepository <User>(); _sut = new SpendItemService(_spendItemRepository, _userRepository, new SpendItemMapper(new EmailHelper(_userRepository)), new EmailHelper(_userRepository)); _emailHelper = new EmailHelper(_userRepository); _userRepository.Add(new User() { EmailAddress = MarkEmail }); _userRepository.Add(new User() { EmailAddress = DerekEmail }); }
public SumCategoryAmountController(SpendItemService spendItemService) { _spendItemService = spendItemService; }
public DeleteSpendItemController(SpendItemService spendItemService) { _spendItemService = spendItemService; }
public SpendHistoryController(SpendItemService spendItemService) { _spendItemService = spendItemService; }
public AddSpendItemController(IHtmlHelper htmlHelper, SpendItemService spendItemService) { _htmlHelper = htmlHelper; _spendItemService = spendItemService; _viewModel = new SpendItemViewModel(); }
public EditSpendItemController(SpendItemService spendItemService, IHtmlHelper htmlHelper) { _spendItemService = spendItemService; _htmlHelper = htmlHelper; }