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