Esempio n. 1
0
 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);
Esempio n. 3
0
        public void ConnectToDatabase()
        {
            var ex =
                Record
                .Exception(
                    () => { WineMsDbContextFunctions.WrapInDbContext(context => { }); });

            Assert.Null(ex);
        }