public CreateCustomerCommandTest(CommandTestFixture fixture) { _customerDbContext = fixture.Context; _mapper = fixture.Mapper; _logger = Mock.Of <ILogger <CreateCustomerCommandHandler> >(); _customerRepository = new CustomerRepository(fixture.Context); }
public CustomerService(ICustomerDbContext ctx) { if (null == ctx) { throw new ArgumentNullException("CustomerContext"); } _context = ctx; }
public DatabaseFixture() { var options = new DbContextOptionsBuilder <CustomerDbContext>() .UseInMemoryDatabase(databaseName: "CustomerDbNew") .Options; dbcontext = new CustomerDbContext(options); dbcontext.Customers.Add(new Customer { Name = "karthik110", Username = "******", Password = "******", Address = null, State = null, Country = null, EmailAddress = null, PAN = null, ContactNumber = null, DOB = Convert.ToDateTime("2000-12-31T23:59:59"), AccountType = null }); dbcontext.Customers.Add(new Customer { Name = "karthik102", Username = "******", Password = "******", Address = null, State = null, Country = null, EmailAddress = null, PAN = null, ContactNumber = null, DOB = Convert.ToDateTime("2000-12-31T23:59:59"), AccountType = null }); dbcontext.Customers.Add(new Customer { Name = "karthik103", Username = "******", Password = "******", Address = null, State = null, Country = null, EmailAddress = null, PAN = null, ContactNumber = null, DOB = Convert.ToDateTime("2000-12-31T23:59:59"), AccountType = null }); dbcontext.SaveChanges(); }
public AccountRepository(CustomerDbContext dbContext) : base(dbContext) { _customerDbContext = dbContext; }
public UnitOfWork(IRepositoryBase <Customer> customerRepository, ICustomerDbContext repositoryContext) { CustomerRepository = customerRepository; _repositoryContext = repositoryContext; }
public CommonRepository(ICustomerDbContext context) : base(context.Context) { }
public SqlCustomerData(ICustomerDbContext context) { this.context = context; }
public CustomerService(ICustomerDbContext iCustomerDbContext) : base(iCustomerDbContext) { _dbContext = iCustomerDbContext; }
public GetAllAccountsQueryHandler(ILogger <GetAllAccountsQueryHandler> logger, IMapper customerMap, ICustomerDbContext customerDbContext) { _logger = logger; _customerMap = customerMap; _customerDbContext = customerDbContext; }
public ReportMasterRepository(ICustomerDbContext context, ILogger <ReportMasterRepository> logger) { _logger = logger; _context = context.Context; }
public CustomerRepository(ICustomerDbContext context) { _context = context; }
public RepositoryBase(ICustomerDbContext repositoryContext) { RepositoryContext = repositoryContext; }
public AssignReportsToAllRepository(ICustomerDbContext context) { _context = context.Context; }
public UserMasterRepository(ICustomerDbContext context, ILogger <UserMasterRepository> logger) : base(context.Context) { _logger = logger; }
public CustomerDetailRepository(ICustomerDbContext customerDbContext) { _customerDbContext = customerDbContext; }
public void Dispose() { Customers = null; dbcontext = null; }