public void CheckProductTypeFileCountIsNotChaged()
        {
            Collection <doProductType> lclcProductTypeTestData = CreateProductTypeCollection();
            boProductType lboProductType = new boProductType();

            Assert.AreEqual(lclcProductTypeTestData.Count, lboProductType.iclcProductType.Count);
        }
        public void CheckProductTypeFileAndEnumCountEqual()
        {
            boProductType lboProductType = new boProductType();
            bool          lblnIsEqual    = false;

            if (Enum.GetNames(typeof(enmProductTypeList)).Length == lboProductType.iclcProductType.Count)
            {
                lblnIsEqual = true;
            }

            Assert.AreEqual(lblnIsEqual, true);
        }
        public void CheckProductTypeAreSportNotAvailable()
        {
            boProductType lboProductType = new boProductType();

            bool lblnIsExists = false;

            if (lboProductType.iclcProductType.Any(x => string.Equals(x.product_type, "Sport")))
            {
                lblnIsExists = true;
            }

            Assert.AreNotEqual(lblnIsExists, true);
        }
        public void CheckProductTypeAreMedical_Book_Food_Perfume_Music()
        {
            boProductType lboProductType = new boProductType();

            bool lblnIsExists = true;

            foreach (enmProductTypeList lenmProductTypeList in Enum.GetValues(typeof(enmProductTypeList)))
            {
                if (!lboProductType.iclcProductType.Any(x => string.Equals(x.product_type, lenmProductTypeList.ToString())))
                {
                    lblnIsExists = false;
                    break;
                }
            }

            Assert.AreEqual(lblnIsExists, true);
        }