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)); }
public UserCartRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public ItemRentalDetailsRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public DispenserItemsRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public OrderDetailsRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public AddressRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public ItemBundleRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public MaintenanceProviderRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public RentalRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public TenantUserRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public OrderRecordRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext ?? throw new ArgumentNullException(nameof(toolShedContext)); }
public UserCartItemRentalsRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public CardRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public StateSalesTaxRepository(ToolShedContext toolShedContext) { this.toolShedContext = toolShedContext; }
public ToolsController(ToolShedContext context) { _context = context; }