Example #1
0
 public void Setup()
 {
     accountStorage     = new CachedAccountStorage(new SqLiteAccountStorage(new RegularAccountFactory()));
     categoryStorage    = new CachedCategoryStorage(new SqLiteCategoryStorage(new RegularCategoryFactory()));
     transactionFactory = new RegularTransactionFactory();
     storage            = new CachedTransactionStorage(new SqLiteTransactionStorage(transactionFactory, accountStorage, categoryStorage));
     categoryStorage.DeleteAllData();
     accountStorage.DeleteAllData();
     storage.DeleteAllData();
     transaction       = CreateTransaction(accountStorage, categoryStorage, transactionFactory);
     childTransaction  = CreateTransaction(accountStorage, categoryStorage, transactionFactory);
     childTransaction1 = CreateTransaction(accountStorage, categoryStorage, transactionFactory);
 }
Example #2
0
 public void DeleteAllData()
 {
     _storage.DeleteAllData();
     _isDirty = true;
 }