private static Result ForEachNewTransaction( this IBackgroundWorker backgroundWorker, Func <WineMsDbContext, WineMsOrderTransactionDocument[]> loadData, Func <WineMsOrderTransactionDocument, Result> func) => WineMsDbContextFunctions .WrapInDbContext(loadData) .ForEachNewTransaction(backgroundWorker, func);
private static Result ForEachNewTransaction( this IBackgroundWorker backgroundWorker, Func <WineMsDbContext, WineMsGeneralLedgerJournalTransactionBatch[]> loadData, Func <WineMsGeneralLedgerJournalTransactionBatch, Result> func) => WineMsDbContextFunctions .WrapInDbContext(loadData) .ForEachNewTransaction(backgroundWorker, func);
public void ConnectToDatabase() { var ex = Record .Exception( () => { WineMsDbContextFunctions.WrapInDbContext(context => { }); }); Assert.Null(ex); }