Exemple #1
0
 public static ProductCategory GetTestProductCategory(this PersistenceTest test)
 {
     return(new ProductCategory
     {
         Id = 1,
         Name = "test"
     });
 }
Exemple #2
0
 public static City GetTestCity(this PersistenceTest test)
 {
     return(new City
     {
         Id = 1,
         Name = "test"
     });
 }
Exemple #3
0
 public static Company GetTestCompany(this PersistenceTest test)
 {
     return(new Company
     {
         Id = 1,
         Name = "Test Company"
     });
 }
Exemple #4
0
 public static ProductSubscription GetTestProductSubscription(this PersistenceTest test)
 {
     return(new ProductSubscription
     {
         Id = 1,
         ProductId = 1,
         SupplierSubscriptionId = 1
     });
 }
Exemple #5
0
 public static LedgerAccountBalance GetTestLedgerAccountBalance(this PersistenceTest test)
 {
     return(new LedgerAccountBalance
     {
         Id = 1,
         BeginningBalance = 1000,
         Balance3 = 2000
     });
 }
Exemple #6
0
 public static SupplierSubscription GetTestSupplierSubscription(this PersistenceTest test)
 {
     return(new SupplierSubscription
     {
         Id = 1,
         CompanyId = 1,
         SupplierId = 1,
         LedgerAccountId = 1
     });
 }
Exemple #7
0
 public static CompanySetting GetTestCompanySetting(this PersistenceTest test)
 {
     return(new CompanySetting
     {
         Id = 1,
         Key = "TestSetting",
         Value = "TestSettingValue",
         CompanyId = test.GetTestCompany().Id
     });
 }
Exemple #8
0
 public static LedgerTransaction GetTestLedgerTransaction(this PersistenceTest test)
 {
     return(new LedgerTransaction
     {
         Id = 1,
         Documentation = "Test",
         Description = "Test",
         PostingDate = DateTime.Now.Date
     });
 }
Exemple #9
0
 public static Supplier GetTestSupplier(this PersistenceTest test)
 {
     return(new Supplier
     {
         Id = 1,
         Name = "test",
         Address = "test",
         ContactNumber = "test",
         CityId = 1
     });
 }
Exemple #10
0
 public static LedgerTransactionLine GetTestLedgerTransactionLine(this PersistenceTest test)
 {
     return(new LedgerTransactionLine
     {
         Id = 1,
         LedgerTransactionId = 1,
         LedgerAccountId = 1,
         Amount = 2000,
         IsDebit = true
     });
 }
Exemple #11
0
 public static Product GetTestProduct(this PersistenceTest test)
 {
     return(new Product
     {
         Id = 1,
         ProductId = "test",
         Name = "test",
         PrimaryUnitName = "test",
         SecondaryUnitName = "test",
         QuantityPerPrimaryUnit = 1,
         QuantityPerSecondaryUnit = 1,
         ProductCategoryId = 2
     });
 }
Exemple #12
0
 public static LedgerAccount GetTestLedgerAccount(this PersistenceTest test)
 {
     return(new LedgerAccount
     {
         Id = 1,
         AccountNumber = 00000,
         Name = "Test",
         Description = "Test",
         Type = LedgerAccountType.Asset,
         Group = LedgerAccountGroup.CashAndBank,
         IsActive = true,
         IsDefault = true,
         IsHidden = true,
         ChartOfAccountsId = test.GetTestChartOfAccounts().Id
     });
 }
Exemple #13
0
 public static ChartOfAccounts GetTestChartOfAccounts(this PersistenceTest test)
 {
     return(new ChartOfAccounts {
         Id = 1
     });
 }