public InventoryRepositorySpec() { InventoryData.Clients.Add(_clientId); _data = InventoryData.Cache(); _testObject = new InventoryRepository(_data, InventoryData.Clients); }
public static IServiceCollection LoadDatabase(this IServiceCollection serviceCollection) => serviceCollection.AddSingleton <IInventoryRepository>(_ => new InventoryRepository(InventoryData.Cache(), InventoryData.Clients));