Esempio n. 1
0
 public void FailDiscussionInitiation()
 {
     if (this.Discussion.Availability == DiscussionAvailability.Ready)
     {
         this.DiscussionInitiationId = null;
         this.Discussion             = BacklogItemDiscussion.FromAvailability(DiscussionAvailability.Failed);
     }
 }
        public BacklogItemDiscussionInitiated(Tenants.TenantId tenantId, BacklogItemId backlogItemId, BacklogItemDiscussion discussion)
        {
            this.TenantId = tenantId;
            this.EventVersion = 1;
            this.OccurredOn = DateTime.UtcNow;
            this.BacklogItemId = backlogItemId;

            this.Discussion = discussion;
        }
Esempio n. 3
0
        public void RequestDiscussion(DiscussionAvailability availability)
        {
            if (this.Discussion.Availability != DiscussionAvailability.Ready)
            {
                this.Discussion = BacklogItemDiscussion.FromAvailability(availability);

                DomainEventPublisher.Instance.Publish(
                    new BacklogItemDiscussionRequested(
                        this.TenantId,
                        this.ProductId,
                        this.BacklogItemId,
                        availability == DiscussionAvailability.Requested));
            }
        }
Esempio n. 4
0
 public void InitiateDiscussion(BacklogItemDiscussion discussion)
 {
     this.Discussion = discussion;
     DomainEventPublisher.Instance.Publish(
         new BacklogItemDiscussionInitiated(this.TenantId, this.BacklogItemId, discussion));
 }
Esempio n. 5
0
 public void InitiateDiscussion(BacklogItemDiscussion discussion)
 {
     this.Discussion = discussion;
     DomainEventPublisher.Instance.Publish(
         new BacklogItemDiscussionInitiated(this.TenantId, this.BacklogItemId, discussion));
 }
Esempio n. 6
0
        public BacklogItemDiscussionInitiated(Tenants.TenantId tenantId, BacklogItemId backlogItemId, BacklogItemDiscussion discussion)
        {
            this.TenantId      = tenantId;
            this.EventVersion  = 1;
            this.OccurredOn    = DateTime.UtcNow;
            this.BacklogItemId = backlogItemId;

            this.Discussion = discussion;
        }
Esempio n. 7
0
 public void FailDiscussionInitiation()
 {
     if (this.Discussion.Availability == DiscussionAvailability.Ready)
     {
         this.DiscussionInitiationId = null;
         this.Discussion = BacklogItemDiscussion.FromAvailability(DiscussionAvailability.Failed);
     }
 }