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

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