Esempio n. 1
0
        public void SetUp()
        {
            dbConnection = Effort.DbConnectionFactory.CreateTransient();
            context      = new GodelBenefitContext(dbConnection);

            storeRepository = new StoreRepository(context);
        }
Esempio n. 2
0
 public StoreRepository(GodelBenefitContext context)
     : base(context)
 {
 }
Esempio n. 3
0
 public BaseRepository(GodelBenefitContext context)
 {
     this.context = context;
     entities     = context.Set <T>();
 }
Esempio n. 4
0
 public StoreTypeReposiroty(GodelBenefitContext context)
     : base(context)
 {
 }
Esempio n. 5
0
 public UnitOfWork(GodelBenefitContext context, ILifetimeScope lifetimeScope)
 {
     this.context       = context ?? throw new ArgumentNullException(nameof(context));
     this.lifetimeScope = lifetimeScope ?? throw new ArgumentNullException(nameof(lifetimeScope));
 }
 public void SetUp()
 {
     connection          = new SqlConnection(@"Server=(LocalDb)\MSSQLLocalDB;Database=TestGodelBenefitBase;Trusted_Connection=True;");
     context             = new GodelBenefitContext(connection);
     storeTypeReposiroty = new StoreTypeReposiroty(context);
 }