コード例 #1
0
 public ProductCreated(TenantId tenantId, Issues.ProductId id, string name, string description, ProductManager manager, IssueAssigner assigner)
 {
     // TODO: Complete member initialization
     this.TenantId = tenantId.ToString();
     this.ProductId = id.ToString();
     this.Name = name.ToString();
     this.Description = description.ToString();
     this.ProductManager = manager.ToString();
     this.IssueAssigner = assigner.ToString();
 }
コード例 #2
0
 public Product(
     TenantId tenantId,
     ProductId id,
     string name,
     string description,
     ProductManager manager,
     IssueAssigner assigner)
     : this()
 {
     ApplyChange(new ProductCreated(tenantId, id, name, description, manager, assigner));
 }
コード例 #3
0
 Product()
 {
     Register <ProductCreated>(e =>
     {
         _id            = new ProductId(e.ProductId);
         _tenantId      = new TenantId(e.TenantId);
         name           = e.Name;
         description    = e.Description;
         productManager = new ProductManager(e.ProductManager);
         issueAssigner  = new IssueAssigner(e.IssueAssigner);
     });
 }
コード例 #4
0
 public ProductCreated(TenantId tenantId, Issues.ProductId id, string name, string description, ProductManager manager, IssueAssigner assigner)
 {
     // TODO: Complete member initialization
     this.TenantId       = tenantId.ToString();
     this.ProductId      = id.ToString();
     this.Name           = name.ToString();
     this.Description    = description.ToString();
     this.ProductManager = manager.ToString();
     this.IssueAssigner  = assigner.ToString();
 }
コード例 #5
0
ファイル: Issue.cs プロジェクト: jfloodnet/DDDWorkshop
 Product()
 {
     Register<ProductCreated>(e =>
     {
         _id = new ProductId(e.ProductId);
         _tenantId = new TenantId(e.TenantId);
         name = e.Name;
         description = e.Description;
         productManager = new ProductManager(e.ProductManager);
         issueAssigner = new IssueAssigner(e.IssueAssigner);
     });
 }
コード例 #6
0
ファイル: Issue.cs プロジェクト: jfloodnet/DDDWorkshop
 public Product(
     TenantId tenantId,
     ProductId id,
     string name,
     string description,
     ProductManager manager,
     IssueAssigner assigner)
     : this()
 {
     ApplyChange(new ProductCreated(tenantId, id, name, description, manager, assigner));
 }