Ejemplo n.º 1
0
        protected SetStatusCommand(TicketBrief ticketToEdit, IPrincipal principal, Status statusToSet)
        {
            ObjectUtils.ThrowIfNull(ticketToEdit.GetTuple(nameof(ticketToEdit)), principal.GetTuple(nameof(principal)));

            this.ticketToEdit = ticketToEdit;
            statusBeforeSet   = (Status)ticketToEdit.StatusId;

            this.statusToSet = statusToSet;

            this.principal = principal;
        }