Exemplo n.º 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();
 }
Exemplo n.º 2
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);
     });
 }
Exemplo n.º 3
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();
 }
Exemplo n.º 4
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));
 }