示例#1
0
        public void SetUp()
        {
            DbContextManager.InitStorage(new SimpleDbContextStorage());
            DbContextManager.Init("DefaultDb", new[] { "Infrastructure.Tests" }, true);
            var Context = DbContextManager.GetContext();

            genericRepository  = new GenericRepository(Context);
            customerRepository = new CustomerRepository(Context);
        }