public void Update_ParsingValidEmail_ItUpdateItSelfToAnValidValidation()
        {
            // Arrange
            var groupName = "Email";
            var target    = "*****@*****.**";

            var validation =
                new EmailValidation(groupName);

            // Act
            var result = validation.Update(target);

            // Assert
            validation.ShouldBe(result);
            result.IsValid.ShouldBeTrue();
            result.Failures.ShouldBeEmpty();
        }
        public void Update_ParsingInvalidEmail_ItUpdateItSelfToAnInvalidValidation()
        {
            // Arrange
            var groupName = "Email";
            var target    = "testHugo#gmail.com";
            var message   = "TestError";
            var severity  = 999;

            var validation =
                new EmailValidation(groupName, target, message, severity);

            // Act
            var result = validation.Update();

            // Assert
            validation.ShouldBe(result);
            result.IsValid.ShouldBeFalse();
            result.Failures.Count.ShouldBe(1);
            result.Failures.Single().Message.ShouldBe(message);
            result.Failures.Single().GroupName.ShouldBe(groupName);
            result.Failures.Single().Severity.ShouldBe(severity);
        }