コード例 #1
0
        public InventoryRepositorySpec()
        {
            InventoryData.Clients.Add(_clientId);
            _data = InventoryData.Cache();

            _testObject = new InventoryRepository(_data, InventoryData.Clients);
        }
コード例 #2
0
ファイル: Configuration.cs プロジェクト: wwt/moes-tavern
 public static IServiceCollection LoadDatabase(this IServiceCollection serviceCollection) =>
 serviceCollection.AddSingleton <IInventoryRepository>(_ => new InventoryRepository(InventoryData.Cache(), InventoryData.Clients));