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();
        }
示例#2
0
        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>();
        }
示例#3
0
 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;
 }
示例#7
0
 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)
 {
 }
示例#10
0
 public $domainName$DbContext(DbContextOptions options, IGspSession session, IAuditService auditService)
     : base(options, session, auditService)