Пример #1
0
 public void IssueRegistered(TenantId Tenant, ProductId Product, IssueId Id, string Name, string Description, IssueType Type, IssueAssignerId assigner)
 {
     Issues.Add(new IssueView { Id = Id, Name = Name, Description = Description, Assigner = assigner });
     if (Type == IssueType.Defect)
         Bus.DefectReported(Tenant, Product, Id, Name, Description, assigner);
     else
         Bus.FeatureRequested(Tenant, Product, Id, Name, Description, assigner);
 }
Пример #2
0
 public bool IsActive(TenantId TenantId, IssueAssignerId assignerId)
 {
     if (!ActiveTenants.Contains(TenantId))
     {
         return(false);
     }
     return(Assigners.Any(x => x.Item1 == TenantId && x.Item2 == assignerId));
 }
Пример #3
0
 public void IssueRegistered(TenantId Tenant, ProductId Product, IssueId Id, string Name, string Description, IssueType Type, IssueAssignerId assigner)
 {
     Issues.Add(new IssueView {
         Id = Id, Name = Name, Description = Description, Assigner = assigner
     });
     if (Type == IssueType.Defect)
     {
         Bus.DefectReported(Tenant, Product, Id, Name, Description, assigner);
     }
     else
     {
         Bus.FeatureRequested(Tenant, Product, Id, Name, Description, assigner);
     }
 }
Пример #4
0
 public void IssueAssignerActivated(TenantId a_tenant, IssueAssignerId an_assigner)
 {
     Assigners.Add(Tuple.Create(a_tenant, an_assigner));
 }
Пример #5
0
 public bool IsActive(TenantId TenantId, IssueAssignerId assignerId)
 {
     if (!ActiveTenants.Contains(TenantId)) return false;
     return Assigners.Any(x=>x.Item1 == TenantId && x.Item2 == assignerId);
 }
Пример #6
0
 public void IssueAssignerActivated(TenantId a_tenant, IssueAssignerId an_assigner)
 {
     Assigners.Add(Tuple.Create(a_tenant, an_assigner));
 }