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