Esempio n. 1
0
        public SignUpCommand CreateSignUpCommand(Guid courseId, User user)
        {
            HolyGuard.ThrowExceptionIfObjectIsNull(user);

            return(new SignUpCommand
            {
                CourseId = courseId,
                User = user
            });
        }
        public string SerializerMessage(IBaseSignUpSystemCommand command)
        {
            HolyGuard.ThrowExceptionIfObjectIsNull(command);

            return(JsonConvert.SerializeObject(command));
        }