public InventoryRepositorySpec()
        {
            InventoryData.Clients.Add(_clientId);
            _data = InventoryData.Cache();

            _testObject = new InventoryRepository(_data, InventoryData.Clients);
        }
Exemple #2
0
 public static IServiceCollection LoadDatabase(this IServiceCollection serviceCollection) =>
 serviceCollection.AddSingleton <IInventoryRepository>(_ => new InventoryRepository(InventoryData.Cache(), InventoryData.Clients));