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); }
public PaymentRepository(AspNet5DataContext dbContext) : base(dbContext) { }
public UserRepository(AspNet5DataContext AspNet5Context) : base(AspNet5Context) { }
public CustomerRepository(AspNet5DataContext dbContext) : base(dbContext) { }
public BaseRepository(AspNet5DataContext aspNet5DataContext) { _aspNet5DataContext = aspNet5DataContext ?? throw new ArgumentNullException(nameof(aspNet5DataContext)); }
public CategoryRepository(AspNet5DataContext dbContext) : base(dbContext) { }
public ProductRepository(AspNet5DataContext dbContext) : base(dbContext) { }
public OrderRepository(AspNet5DataContext dbContext) : base(dbContext) { }