public void Validate_ModelWithMandatoryProperties_IsValid()
        {
            var model = new ModelWithMandatoryProperties
            {
                Email      = EmailAddress.Parse("*****@*****.**"),
                SomeString = "Some value",
            };

            DataAnnotationsAssert.IsValid(model);
        }
        public void Validate_ModelWithMandatoryProperties_WithErrors()
        {
            using (CultureInfoScope.NewInvariant())
            {
                var model = new ModelWithMandatoryProperties();

                DataAnnotationsAssert.WithErrors(model,
                                                 ValidationTestMessage.Error("The E-mail address field is required.", "Email"),
                                                 ValidationTestMessage.Error("The SomeString field is required.", "SomeString")
                                                 );
            }
        }