public CustomerService(LoyaltyDbContext dbContext, IMapper mapper, IRepository <Customer> repository, ICustomerRepository customerRepository, ICustomerCachedRepository customerCachedRepository) { this.dbContext = dbContext; this.mapper = mapper; this.repository = repository; this.customerRepository = customerRepository; this.customerCachedRepository = customerCachedRepository; }
public Repository(LoyaltyDbContext dbContext) : base(dbContext) { }
public CustomerRepository(LoyaltyDbContext dbContext) { this.dbContext = dbContext; }
public DbInitializer(LoyaltyDbContext dbContext, ILogger <DbInitializer> logger) { this.dbContext = dbContext; this.log = logger; }