Esempio n. 1
0
        public void TestOrders_Groceries()
        {
            BillingSystem.Business.User user = new User()
            {
                Doj = new DateTime(2012, 1, 1),
                FirstName = "Darpan",
                LastName = "Sinha",
                IsAffiliate = false,
                IsEmployee = true
            };

            BillingSystem.Business.Order order = new Business.Order();

            order.User = user;

            order.Items = new List<IItem>();

            order.Items.Add(new BillingSystem.Business.ITems() { ItemType = BillingSystem.Domain.ItemType.Groceries, Price = 1000, Quantity = 1 });

            order.Create();
        }
Esempio n. 2
0
        public void TestOrders()
        {
            //shd give 5% dis of doj = 50
            //5$ dis = 950 = 45
            BillingSystem.Business.User user = new User()
            {
                Doj = new DateTime(2008, 1, 1),
                FirstName = "Darpan",
                LastName = "Sinha",
                IsAffiliate = false,
                IsEmployee = false
            };

            BillingSystem.Business.Order order = new Business.Order();

            order.User = user;

            order.Items = new List<IItem>();

            order.Items.Add(new BillingSystem.Business.ITems() { ItemType = BillingSystem.Domain.ItemType.Others, Price = 1000, Quantity = 1 });

            order.Create();
        }