public void ValidateNullIDNumber()
        {
            HomeController controller = new HomeController();
            SAIDGeneratorResponse actual = ((JsonResult)controller.ValidateIDNumber(null)).Data as SAIDGeneratorResponse;

            Assert.IsTrue(!actual.Success);
        }
        public void ValidateLongerLengthRegexIDNumber()
        {
            HomeController controller = new HomeController();
            SAIDGeneratorResponse actual = ((JsonResult)controller.ValidateIDNumber("65100952450811")).Data as SAIDGeneratorResponse;

            Assert.IsTrue(!actual.Success);
        }
        public void ValidateAlphaRegexIDNumber()
        {
            HomeController controller = new HomeController();
            SAIDGeneratorResponse actual = ((JsonResult)controller.ValidateIDNumber("65120198y6t55")).Data as SAIDGeneratorResponse;

            Assert.IsTrue(!actual.Success);
        }
        public void TestGetRandomIDNumber()
        {
            HomeController controller = new HomeController();
            SAIDGeneratorResponse actual = ((JsonResult)controller.GetRandomIDNumber()).Data as SAIDGeneratorResponse;

            Assert.IsTrue(actual.Success);
        }
        public void ValidateKnownIDNumber()
        {
            HomeController controller = new HomeController();
            SAIDGeneratorResponse actual = ((JsonResult)controller.GetRandomIDNumber()).Data as SAIDGeneratorResponse;//Gets a valid randomly generated ID.

            string IDNumber = "3309161565066";

            if (actual.Success) //Error from service - try a known valid ID number.
            {
                IDNumber = actual.Message;
            }

            actual = ((JsonResult)controller.ValidateIDNumber(IDNumber)).Data as SAIDGeneratorResponse;
            Assert.IsTrue(actual.Success);
        }