Exemplo n.º 1
0
 public static IWarehouseService GetWarehouseService(IUserInfo userInfo, string dbName, bool seedWarehouseSchema = false)
 => new WarehouseService(
     LoggingHelper.GetLogger <WarehouseService>(),
     DbContextMocker.GetOnlineStoreDbContextInMemory(dbName, seedWarehouseSchema),
     userInfo
     );
Exemplo n.º 2
0
 public static IHumanResourcesService GetHumanResourcesService(IUserInfo userInfo, string dbName)
 => new HumanResourcesService(
     LoggingHelper.GetLogger <HumanResourcesService>(),
     DbContextMocker.GetOnlineStoreDbContextInMemory(dbName),
     userInfo
     );
Exemplo n.º 3
0
 public static IWarehouseService GetWarehouseService(IUserInfo userInfo, string dbName)
 => new WarehouseService(
     LoggingHelper.GetLogger <WarehouseService>(),
     userInfo,
     DbContextMocker.GetOnlineStoreDbContextInMemory(dbName)
     );