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

            storeRepository = new StoreRepository(context);
        }
Exemple #2
0
 public StoreRepository(GodelBenefitContext context)
     : base(context)
 {
 }
 public BaseRepository(GodelBenefitContext context)
 {
     this.context = context;
     entities     = context.Set <T>();
 }
Exemple #4
0
 public StoreTypeReposiroty(GodelBenefitContext context)
     : base(context)
 {
 }
Exemple #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);
 }