Beispiel #1
0
        public void SetUp()
        {
            Database.SetInitializer(new DataSeedingInitializer());
            context = new MyDbContext("DefaultDb");

            customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context);
            repository         = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context);
        }
        public void SetUp()
        {
            DbContextManager.InitStorage(new SimpleDbContextStorage());
            DbContextManager.Init("DefaultDb", new[] { "Infrastructure.Tests" }, true);

            customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository();
            repository         = new Infrastructure.Data.EntityFramework.Lab.GenericRepository();
        }
Beispiel #3
0
        public void SetUp()
        {
            Database.SetInitializer(new DataSeedingInitializer());
            context = new MyDbContext("DefaultDb");

            customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context);
            repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context);
        }
Beispiel #4
0
        public void SetUp()
        {
            DbContextBuilder<DbContext> builder = new DbContextBuilder<DbContext>("DefaultDb", new[] { "Infrastructure.Tests" }, true, true);
            context = builder.BuildDbContext();

            customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context);
            repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context);
        }
Beispiel #5
0
        public void SetUp()
        {
            DbContextManager.InitStorage(new SimpleDbContextStorage());
            DbContextManager.Init("DefaultDb", new[] { "Infrastructure.Tests" }, true);

            customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository();
            repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository();
        }
Beispiel #6
0
        public void SetUp()
        {
            DbContextBuilder <DbContext> builder = new DbContextBuilder <DbContext>("DefaultDb", new[] { "Infrastructure.Tests" }, true, true);

            context = builder.BuildDbContext();

            customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context);
            repository         = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context);
        }