public void Initialize() { _repo = new MockCarSaleRepository(); _email = new MockEmailSender(); _carSaleService = new CarSaleService(_repo, _email); _carSaleController = new CarSaleController(_userManager, _carSaleService); _data = new MockData(); }
public CarSaleService(ICarSaleRepository repo, IEmailSender email) { _repo = repo; _email = email; }