Example #1
0
//        public static IList<SupplierProduct> GetTestSupplierProducts(this ServiceTests tests)
//        {
//            return new List<SupplierProduct>
//            {
//                new SupplierProduct
//                {
//                    Id = 1,
//                    SupplierId = 1,
//                    ProductId = 1,
//                    Supplier = tests.GetTestSupplier(),
//                    Product = tests.GetTestProduct()
//                }
//            };
//        }

//        public static SupplierProduct GetTestSupplierProduct(this ServiceTests tests)
//        {
//            return tests.GetTestSupplierProducts().First();
//        }

        public static IList <CompanySetting> GetTestCompanySettings(this ServiceTests tests)
        {
            return(new List <CompanySetting>
            {
                new CompanySetting
                {
                    Id = 1,
                    Key = "setting1",
                    Value = "Value1",
                    CompanyId = tests.GetTestCompany().Id
                },
                new CompanySetting
                {
                    Id = 2,
                    Key = "setting2",
                    Value = "Value2",
                    CompanyId = tests.GetTestCompany().Id
                },
                new CompanySetting
                {
                    Id = 3,
                    Key = "setting3",
                    Value = "Value3",
                    CompanyId = tests.GetTestCompany().Id
                },
                new CompanySetting
                {
                    Id = 4,
                    Key = "setting4",
                    Value = "Value4",
                    CompanyId = tests.GetTestCompany().Id
                }
            });
        }
Example #2
0
 public static ChartOfAccounts GetTestChartOfAccounts(this ServiceTests tests, int id)
 {
     return(new ChartOfAccounts
     {
         Id = id,
         CompanyId = tests.GetTestCompany().Id,
         LedgerAccounts = tests.GetTestLedgerAccounts()
     });
 }
Example #3
0
 public static IList <SupplierSubscription> GetTestSupplierSubscriptions(this ServiceTests tests)
 {
     return(new List <SupplierSubscription>
     {
         new SupplierSubscription
         {
             Id = 1,
             CompanyId = 1,
             SupplierId = 1,
             LedgerAccountId = 1,
             Supplier = tests.GetTestSupplier(),
             Company = tests.GetTestCompany()
         }
     });
 }