public void WhenGroupNameIsEmpty_ShouldHaveError()
        {
            var validator = new GroupNameUpdateValidator();

            #region Init variables
            int    groupID = 0;
            string name    = "";
            #endregion
            GroupNameUpdate groupNameUpdate = new GroupNameUpdate
            {
                GroupID = groupID,
                Name    = name
            };
            var result = validator.TestValidate(groupNameUpdate);
            #region Tests
            result.ShouldHaveValidationErrorFor(x => x.Name);
            #endregion
        }
        public void WhenGroupNameIsCorrect_ShouldNotHaveAnyError()
        {
            var validator = new GroupNameUpdateValidator();

            #region Init variables
            int    groupID = 0;
            string name    = "testname";
            #endregion
            GroupNameUpdate groupNameUpdate = new GroupNameUpdate
            {
                GroupID = groupID,
                Name    = name
            };
            var result = validator.TestValidate(groupNameUpdate);
            #region Tests
            result.ShouldNotHaveAnyValidationErrors();
            #endregion
        }