public void ValidMethodOK()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void QuantityExtremeMax()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Quantity    = "99999999";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreNotEqual(Error, "");
        }
        public void QuantityMinBoundary()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Quantity    = "0";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void QuantityMaxPlusOne()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Quantity    = "10001";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreNotEqual(Error, "");
        }
        public void CategoryMinPlusOne()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Category    = "aa";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void PriceMaxMinusOne()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Price       = "9999";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void DateAddedInvalidDataType()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       DateAdded   = "a";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreNotEqual(Error, "");
        }
        public void DateAddedMinBoundary()
        {
            clsInventory AnInventory = new clsInventory();
            string       DateAdded   = DateTime.Now.Date.ToString();
            string       Error       = "";

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void CategoryExtremeMax()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Category    = "";

            Category = Category.PadRight(500, 'a');
            Error    = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreNotEqual(Error, "");
        }
        public void CategoryMaxMinusOne()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Category    = "";

            Category = Category.PadRight(19, 'a');
            Error    = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void NameMid()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            string       Name        = "";

            Name  = Name.PadRight(20, 'a');
            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreEqual(Error, "");
        }
        public void DateAddedExtremeMax()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            DateTime     TestDate;

            TestDate = DateTime.Now.Date;
            TestDate = DateTime.Now.AddYears(100);
            string DateAdded = TestDate.ToString();

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreNotEqual(Error, "");
        }
        public void DateAddedMinMinusOne()
        {
            clsInventory AnInventory = new clsInventory();
            string       Error       = "";
            DateTime     TestDate;

            TestDate = DateTime.Now.Date;
            TestDate = DateTime.Now.AddDays(-1);
            string DateAdded = TestDate.ToString();

            Error = AnInventory.Valid(Name, Price, Quantity, Category, DateAdded);
            Assert.AreNotEqual(Error, "");
        }