示例#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)
     );