示例#1
0
        public void CustmorTestCase()
        {
            Custmoer customer = new Custmoer(101, "Abc", "Mumbai");
            int      Id       = customer.CustmorId;
            string   name     = customer.CustmorName;
            string   location = customer.CustmorLocation;

            Assert.AreEqual(101, Id, "get Currect Id");
            Assert.AreEqual("Abc", name, "get Currectname");
            Assert.AreEqual("Mumbai", location, "get Currect Cost");
        }
示例#2
0
        public void CustmorTestCase()
        {
            Custmoer customer = new Custmoer(101, "Abc", "Mumbai");
            int      Id       = customer.CustmorId;
            string   name     = customer.CustmorName;
            string   location = customer.CustmorLocation;

            customer.AddOrder(new Order(121, new System.DateTime(2018 / 02 / 04)));

            Assert.AreEqual(101, Id, "get Currect Id");
            Assert.AreEqual("Abc", name, "get Currectname");
            Assert.AreEqual("Mumbai", location, "get Currect location");
            Assert.AreEqual(1, customer.OrderList.Count, "get Currect location");
        }