public void WhenGroupMemberHaveCorrectAddress_ShouldNotHaveAnyError()
        {
            var validator = new GroupMemberUpdateValidator();

            #region Init variables
            int    groupID = 0;
            string address = "*****@*****.**";
            #endregion
            GroupMemberUpdate groupMemberUpdate = new GroupMemberUpdate
            {
                GroupID            = groupID,
                GroupMemberAddress = address
            };
            var result = validator.TestValidate(groupMemberUpdate);
            #region Tests
            result.ShouldNotHaveAnyValidationErrors();
            #endregion
        }
        public void WhenGroupMemberHaveAddressWithoutDomain_ShouldHaveError()
        {
            var validator = new GroupMemberUpdateValidator();

            #region Init variables
            int    groupID = 0;
            string address = "wroga@ddresspl";
            #endregion
            GroupMemberUpdate groupMemberUpdate = new GroupMemberUpdate
            {
                GroupID            = groupID,
                GroupMemberAddress = address
            };
            var result = validator.TestValidate(groupMemberUpdate);
            #region Tests
            result.ShouldHaveValidationErrorFor(x => x.GroupMemberAddress);
            #endregion
        }