public void SetUp() { dbConnection = Effort.DbConnectionFactory.CreateTransient(); context = new GodelBenefitContext(dbConnection); storeRepository = new StoreRepository(context); }
public StoreRepository(GodelBenefitContext context) : base(context) { }
public BaseRepository(GodelBenefitContext context) { this.context = context; entities = context.Set <T>(); }
public StoreTypeReposiroty(GodelBenefitContext context) : base(context) { }
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); }