Пример #1
0
        private ItemBundleMappingRepository CreateItemBundleMappingRepository()
        {
            DbContextOptions <ToolShedContext> options;
            var builder = new DbContextOptionsBuilder <ToolShedContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString());

            options = builder.Options;
            var toolshedContext = new ToolShedContext(options);

            toolshedContext.Database.EnsureDeleted();
            toolshedContext.Database.EnsureCreated();

            return(new ItemBundleMappingRepository(toolshedContext));
        }
        private UserAddressesRepository GetInMemoryUserAddressesRepository()
        {
            DbContextOptions <ToolShedContext> options;
            var builder = new DbContextOptionsBuilder <ToolShedContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString());

            options = builder.Options;
            var toolshedContext = new ToolShedContext(options);

            toolshedContext.Database.EnsureDeleted();
            toolshedContext.Database.EnsureCreated();

            return(new UserAddressesRepository(toolshedContext));
        }
Пример #3
0
 public UserCartRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #4
0
 public ItemRentalDetailsRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #5
0
 public DispenserItemsRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #6
0
 public OrderDetailsRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #7
0
 public AddressRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #8
0
 public ItemBundleRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #9
0
 public MaintenanceProviderRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #10
0
 public RentalRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #11
0
 public TenantUserRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #12
0
 public OrderRecordRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext ?? throw new ArgumentNullException(nameof(toolShedContext));
 }
 public UserCartItemRentalsRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #14
0
 public CardRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #15
0
 public StateSalesTaxRepository(ToolShedContext toolShedContext)
 {
     this.toolShedContext = toolShedContext;
 }
Пример #16
0
 public ToolsController(ToolShedContext context)
 {
     _context = context;
 }