Beispiel #1
0
        public override void Initialize()
        {
            base.Initialize();

            Fixture = new DatabaseEntityFrameworkFixture();

            Factory = Fixture.Factory;

            var context = Factory.Get();

            Uow = new EntityFrameworkUnitOfWork(Factory);

            Database.SetInitializer(new DatabaseTestInitializer());
        }
Beispiel #2
0
 protected RepositoryBaseEF(EntityFrameworkFactory databaseFactory)
 {
     DatabaseFactory = databaseFactory;
     dbset           = DataContext.Set <T>();
     dataContext     = dataContext ?? (DatabaseFactory.Get());
 }