public Payment(OrderId orderId) { Id = new PaymentId(Guid.NewGuid()); _createDate = DateTime.UtcNow; _orderId = orderId; _status = PaymentStatus.ToPay; _emailNotificationIsSent = false; AddDomainEvent(new PaymentCreatedEvent(Id, _orderId)); }
public Payment(OrderId orderId) { this.Id = new PaymentId(Guid.NewGuid()); this._createDate = DateTime.UtcNow; this._orderId = orderId; this._status = PaymentStatus.ToPay; this._emailNotificationIsSent = false; this.AddDomainEvent(new PaymentCreatedEvent(this.Id, this._orderId)); }
public PaymentCreatedEvent(PaymentId paymentId, OrderId orderId) { this.PaymentId = paymentId; this.OrderId = orderId; }
public PaymentCreatedEvent(PaymentId paymentId, OrderId orderId) { PaymentId = paymentId; OrderId = orderId; }