Exemplo n.º 1
0
        // UpdateTicket (CTI, Summary, Description)
        public void UpdateTicket(string source, string summary, string description, Categorisation categorisation)
        {
            ReadOnlyCheck();

            Guard.NotNullOrEmpty(source, nameof(source));
            Guard.NotNullOrEmpty(summary, nameof(summary));
            Guard.NotNullOrEmpty(description, nameof(description));
            Guard.NotNull(categorisation, nameof(categorisation));

            Source         = source;
            Summary        = summary;
            Description    = description;
            Categorisation = categorisation;
        }
Exemplo n.º 2
0
        public Ticket(
            string creator,
            string source,
            string summary,
            string description,
            Categorisation categorisation)
        {
            Guard.NotNullOrEmpty(creator, nameof(creator));
            Guard.NotNullOrEmpty(source, nameof(source));
            Guard.NotNullOrEmpty(summary, nameof(summary));
            Guard.NotNullOrEmpty(description, nameof(description));
            Guard.NotNull(categorisation, nameof(categorisation));

            CreatedDate    = DateTime.UtcNow;
            Creator        = creator;
            Source         = source;
            Description    = description;
            Summary        = summary;
            Categorisation = categorisation;
            Status         = Status.Unassigned;
        }