public void ValidateTheModel()
        {
            var model = new MockValidationModel();
            Assert.AreEqual("The Name field is required.", model.Validate());
            Assert.AreEqual("The Name field is required.", model.Validate("Name"));

            model.Name = "Bill";
            Assert.AreEqual("", model.Validate());
            Assert.AreEqual("", model.Validate("Name"));
        }
        public void ValidateTheModel()
        {
            var model = new MockValidationModel();

            Assert.AreEqual("The Name field is required.", model.Validate());
            Assert.AreEqual("The Name field is required.", model.Validate(nameof(model.Name)));

            model.Name = "Bill";
            Assert.AreEqual("", model.Validate());
            Assert.AreEqual("", model.Validate(nameof(model.Name)));
        }