public BaseRepositoryTests() { DbContextOptions <FakeDbContext> mockOptions = new DbContextOptionsBuilder <FakeDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()).Options; _auditService = A.Fake <IAuditService>(); _gspSession = A.Fake <IGspSession>(); _context = new FakeDbContext(mockOptions, _gspSession, _auditService); _fixture = new Fixture(); }
public AuditTests() { DbContextOptions <FakeDbContext> mockOptions = new DbContextOptionsBuilder <FakeDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()).Options; _gspSession = A.Fake <IGspSession>(); _dateTimeService = A.Fake <IDateTimeService>(); _auditService = new AuditService(A.Fake <ILogger <AuditService> >(), _dateTimeService, _gspSession); _context = new FakeDbContext(mockOptions, _gspSession, _auditService); _fixture = new Fixture(); _accountModel = _fixture.Create <GspUserAccountModel>(); }
protected SharedAccountDbContext(DbContextOptions options, IGspSession gspSession, IAuditService auditService) : base(options, gspSession, auditService) { }
public AuditService(ILogger <AuditService> logger, IDateTimeService dateTimeService, IGspSession gspSession) { _logger = logger; _dateTimeService = dateTimeService; _gspSession = gspSession; }
public FakeDbContext(DbContextOptions options, IGspSession session, IAuditService auditService) : base(options, session, auditService) { }
protected GspDbContext(DbContextOptions options, IGspSession session, IAuditService auditService) : base(options) { Session = session; AuditService = auditService; }
public RateDbContext(DbContextOptions <RateDbContext> options, IGspSession gspSession, IAuditService auditService) : base(options, gspSession, auditService) { }
public PaymentDbContext(DbContextOptions <PaymentDbContext> options, IGspSession gspSession, IAuditService auditService) : base(options, gspSession, auditService) { }
public RecommendationDbContext(DbContextOptions <RecommendationDbContext> options, IGspSession gspSession, IAuditService auditService) : base(options, gspSession, auditService) { }
public $domainName$DbContext(DbContextOptions options, IGspSession session, IAuditService auditService) : base(options, session, auditService)