Beispiel #1
0
 public EditTicketResponse(IValidationResult result,
                           IValidationResultInterpreter resultInterpreter,
                           Ticket createdTicket = null)
 {
     Ticket = createdTicket;
     this.ValidationResult  = result ?? throw new ArgumentNullException(nameof(result));
     this.resultInterpreter = resultInterpreter ?? throw new ArgumentNullException(nameof(resultInterpreter));
 }
Beispiel #2
0
 public CreateTicketResponseFactory(IValidationResultInterpreter resultInterpreter)
 {
     if (resultInterpreter == null)
     {
         throw new ArgumentNullException(nameof(resultInterpreter));
     }
     this.resultInterpreter = resultInterpreter;
 }
Beispiel #3
0
        public EditCommentResponse(IValidationResult result,
                                   IValidationResultInterpreter resultInterpreter)
        {
            if (resultInterpreter == null)
            {
                throw new ArgumentNullException(nameof(resultInterpreter));
            }
            if (result == null)
            {
                throw new ArgumentNullException(nameof(result));
            }

            this.validationResult  = result;
            this.resultInterpreter = resultInterpreter;
        }
Beispiel #4
0
        public CreateTicketResponse(IValidationResult result,
                                    IValidationResultInterpreter resultInterpreter,
                                    Ticket createdTicket = null)
        {
            if (resultInterpreter == null)
            {
                throw new ArgumentNullException(nameof(resultInterpreter));
            }
            if (result == null)
            {
                throw new ArgumentNullException(nameof(result));
            }

            Ticket = createdTicket;
            this.validationResult  = result;
            this.resultInterpreter = resultInterpreter;
        }
Beispiel #5
0
 public CreateProjectResponse(IValidationResultInterpreter resultInterpreter)
 {
     this.resultInterpreter = resultInterpreter ?? throw new ArgumentNullException(nameof(resultInterpreter));
 }