public ReceiptsService(IDeletableEntityRepository <Receipt> receiptRepository, IProductsService productsService, IDealsService dealsService) { this.receiptRepository = receiptRepository; this.productsService = productsService; this.dealsService = dealsService; }
public DealsController( UserManager <ApplicationUser> userManager, IDealsService dealsService, ApplicationDbContext context, IDeletableEntityRepository <Deal> dealRepository) { this.userManager = userManager; this.dealsService = dealsService; this.context = context; this.dealRepository = dealRepository; }
public void Initialize() { #region "Mock Deal data" deals = new List <IDeal>(); deals.Add(new Deal { CustomerName = "Aroush Knapp", DealershipName = "Maxwell & Junior", DealNumber = 5132, Price = 289900, SoldDate = DateTime.Now.AddDays(-2).Date, Vehicle = "2016 Porsche 911 2dr Cpe GT3 RS" }); deals.Add(new Deal { CustomerName = "Milli Fulton", DealershipName = "Sun of Saskatoon", DealNumber = 5469, Price = 429987, SoldDate = DateTime.Now.AddDays(-2).Date, Vehicle = "2017 Ferrari 488 Spider" }); deals.Add(new Deal { CustomerName = "Rahima Skinner", DealershipName = "Seven Star Dealership", DealNumber = 5132, Price = 169900, SoldDate = DateTime.Now.AddDays(-2).Date, Vehicle = "2009 Lamborghini Gallardo Carbon Fiber LP-560" }); deals.Add(new Deal { CustomerName = "Richard Spencer", DealershipName = "Sun of Saskatoon", DealNumber = 5212, Price = 134599, SoldDate = DateTime.Now.AddDays(-2).Date, Vehicle = "2009 Lamborghini Gallardo Carbon Fiber LP-560" }); #endregion _dealsService = new DealsService(_dealsInfraService.Object); _dealsInfraService.Setup(_ => _.GetDealData()).Returns(deals); }
/// <summary> /// Initializes a new instance of the <see cref="AgileCrm" /> class. /// </summary> /// <param name="companiesService">The companies service.</param> /// <param name="contactsService">The contacts service.</param> /// <param name="dealsService">The deals service.</param> /// <param name="notesService">The notes service.</param> /// <param name="tasksService">The tasks service.</param> internal AgileCrm( ICompaniesService companiesService, IContactsService contactsService, IDealsService dealsService, INotesService notesService, ITasksService tasksService) { companiesService.EnsureNotNull(); contactsService.EnsureNotNull(); dealsService.EnsureNotNull(); notesService.EnsureNotNull(); tasksService.EnsureNotNull(); this.companiesService = companiesService; this.contactsService = contactsService; this.dealsService = dealsService; this.notesService = notesService; this.tasksService = tasksService; }
public HomeController(IUsersService users, IDealsService deals, ISanitizerService sanitizer) : base(users) { this.deals = deals; this.sanitizer = sanitizer; }
public DealsController(IDealsService dealsService) { this.dealsService = dealsService; }
public FindFlightsViewModel(IDealsService dealsService) { _dealsService = dealsService; }
public DealsController(IHostingEnvironment hostingEnvironment, IDealsService dealsService) { _hostingEnvironment = hostingEnvironment; _dealsService = dealsService; }
public FakeTripsService(IDealsService dealsService) { _dealsService = dealsService; }
public SkillsController(IDealsService dealsService) { _dealsService = dealsService; }
public BooksService(IBooksRepository repository, IDealsService dealsService) { _repository = repository; _dealsService = dealsService; }
public DealController() { _dealsService = new DealsService(new DealsRepository(), new DealsMapper(new UserMapper(new AesEncryptor(KeyReader.Instance().GetKey()))), new UserService(new UserRepository(new AesEncryptor(KeyReader.Instance().GetKey())), new AuthenticatorFactory(), new UserMapper(new AesEncryptor(KeyReader.Instance().GetKey())))); }