Пример #1
0
 public static ProductCategory GetTestProductCategory(this PersistenceTest test)
 {
     return(new ProductCategory
     {
         Id = 1,
         Name = "test"
     });
 }
Пример #2
0
 public static City GetTestCity(this PersistenceTest test)
 {
     return(new City
     {
         Id = 1,
         Name = "test"
     });
 }
Пример #3
0
 public static Company GetTestCompany(this PersistenceTest test)
 {
     return(new Company
     {
         Id = 1,
         Name = "Test Company"
     });
 }
Пример #4
0
 public static ProductSubscription GetTestProductSubscription(this PersistenceTest test)
 {
     return(new ProductSubscription
     {
         Id = 1,
         ProductId = 1,
         SupplierSubscriptionId = 1
     });
 }
Пример #5
0
 public static LedgerAccountBalance GetTestLedgerAccountBalance(this PersistenceTest test)
 {
     return(new LedgerAccountBalance
     {
         Id = 1,
         BeginningBalance = 1000,
         Balance3 = 2000
     });
 }
Пример #6
0
 public static SupplierSubscription GetTestSupplierSubscription(this PersistenceTest test)
 {
     return(new SupplierSubscription
     {
         Id = 1,
         CompanyId = 1,
         SupplierId = 1,
         LedgerAccountId = 1
     });
 }
Пример #7
0
 public static CompanySetting GetTestCompanySetting(this PersistenceTest test)
 {
     return(new CompanySetting
     {
         Id = 1,
         Key = "TestSetting",
         Value = "TestSettingValue",
         CompanyId = test.GetTestCompany().Id
     });
 }
Пример #8
0
 public static LedgerTransaction GetTestLedgerTransaction(this PersistenceTest test)
 {
     return(new LedgerTransaction
     {
         Id = 1,
         Documentation = "Test",
         Description = "Test",
         PostingDate = DateTime.Now.Date
     });
 }
Пример #9
0
 public static Supplier GetTestSupplier(this PersistenceTest test)
 {
     return(new Supplier
     {
         Id = 1,
         Name = "test",
         Address = "test",
         ContactNumber = "test",
         CityId = 1
     });
 }
Пример #10
0
 public static LedgerTransactionLine GetTestLedgerTransactionLine(this PersistenceTest test)
 {
     return(new LedgerTransactionLine
     {
         Id = 1,
         LedgerTransactionId = 1,
         LedgerAccountId = 1,
         Amount = 2000,
         IsDebit = true
     });
 }
Пример #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
     });
 }
Пример #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
     });
 }
Пример #13
0
 public static ChartOfAccounts GetTestChartOfAccounts(this PersistenceTest test)
 {
     return(new ChartOfAccounts {
         Id = 1
     });
 }