示例#1
0
        public ProductRepositoryTests(ITestOutputHelper output)
        {
            _output = output;
            var dbOptions = new DbContextOptionsBuilder <AspNet5DataContext>()
                            .UseInMemoryDatabase(databaseName: "AspNet5RepositoryTest")
                            .Options;

            _aspNet5DataContext = new AspNet5DataContext(dbOptions);
            AspNet5DataSeed.SeedAsync(_aspNet5DataContext, false).Wait();
            _productRepository = new ProductRepository(_aspNet5DataContext);
        }
示例#2
0
 public PaymentRepository(AspNet5DataContext dbContext)
     : base(dbContext)
 {
 }
 public UserRepository(AspNet5DataContext AspNet5Context)
     : base(AspNet5Context)
 {
 }
示例#4
0
 public CustomerRepository(AspNet5DataContext dbContext)
     : base(dbContext)
 {
 }
示例#5
0
 public BaseRepository(AspNet5DataContext aspNet5DataContext)
 {
     _aspNet5DataContext = aspNet5DataContext ?? throw new ArgumentNullException(nameof(aspNet5DataContext));
 }
 public CategoryRepository(AspNet5DataContext dbContext)
     : base(dbContext)
 {
 }
示例#7
0
 public ProductRepository(AspNet5DataContext dbContext)
     : base(dbContext)
 {
 }
 public OrderRepository(AspNet5DataContext dbContext)
     : base(dbContext)
 {
 }