Exemplo n.º 1
0
 private void Setup_FakeDbContext(
     List <Asset> fakeAssetList,
     List <AssetType> fakeAssetTypeList)
 {
     // setup dbContext
     _fakeDbContext = MockFinancialDbContext.Create(
         assets: fakeAssetList,
         assetTypes: fakeAssetTypeList);
 }
Exemplo n.º 2
0
        private void Setup_Service_FakeUnitOfWork(List <TransactionCategory> fakeTransactionCategories)
        {
            // setup DbContext
            _fakeDbContext = MockFinancialDbContext.Create(transactionCategories: fakeTransactionCategories);

            // set up uow
            _fakeUnitOfWork = new UnitOfWork(_fakeDbContext);

            // set up repository
            _service = new AccountTransactionService(_fakeUnitOfWork);
        }
Exemplo n.º 3
0
        private void Setup_Service_FakeUnitOfWork(
            List <Asset> fakeAssets,
            List <AssetSetting> fakeAssetSettings,
            List <AssetType> fakeAssetTypes,
            List <SettingType> fakeSettingTypes)
        {
            // setup DbContext
            _fakeDbContext = MockFinancialDbContext.Create(
                assets: fakeAssets,
                assetSettings: fakeAssetSettings,
                assetTypes: fakeAssetTypes,
                settingTypes: fakeSettingTypes);

            // set up uow
            _fakeUnitOfWork = new UnitOfWork(_fakeDbContext);

            // set up repository
            _service = new AccountTransactionService(_fakeUnitOfWork);
        }
Exemplo n.º 4
0
 private void Setup_FakeDbContext(
     List <Asset> fakeAssetList,
     List <AssetSetting> fakeAssetSettingList,
     List <AssetTransaction> fakeAssetTransactionList,
     List <AssetType> fakeAssetTypeList,
     List <SettingType> fakeSettingTypeList,
     List <TransactionCategory> fakeTransactionCategoryList,
     List <TransactionDescription> fakeTransactionDescriptionList,
     List <TransactionType> fakeTransactionTypeList)
 {
     _fakeDbContext = MockFinancialDbContext.Create(
         assets: fakeAssetList,
         assetSettings: fakeAssetSettingList,
         assetTransactions: fakeAssetTransactionList,
         assetTypes: fakeAssetTypeList,
         settingTypes: fakeSettingTypeList,
         transactionCategories: fakeTransactionCategoryList,
         transactionDescriptions: fakeTransactionDescriptionList,
         transactionTypes: fakeTransactionTypeList);
 }
Exemplo n.º 5
0
 private void Setup_FakeDbContext(List <TransactionCategory> fakeTransactionCategoryList)
 {
     // setup dbContext
     _fakeDbContext = MockFinancialDbContext.Create(transactionCategories: fakeTransactionCategoryList);
 }