public ArticlePriceAdjusted( string id, EventMoney price, DateTime dateTime) : base(id, dateTime) { Price = price; }
protected void ToString(List <string> toStringOutput) { toStringOutput.Add($"Id = {(Id == null ? "null" : Id == string.Empty ? "" : Id)}"); toStringOutput.Add($"EmployeeId = {(EmployeeId == null ? "null" : EmployeeId == string.Empty ? "" : EmployeeId)}"); toStringOutput.Add($"EventType = {(EventType == null ? "null" : EventType.ToString())}"); toStringOutput.Add($"EventMoney = {(EventMoney == null ? "null" : EventMoney.ToString())}"); toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt == string.Empty ? "" : CreatedAt)}"); toStringOutput.Add($"Description = {(Description == null ? "null" : Description == string.Empty ? "" : Description)}"); }
public ArticleCreated( string id, string articlenumber, string description, EventMoney price, DateTime dateTime) : base(id, dateTime) { Articlenumber = articlenumber; Description = description; Price = price; }
public ShoppingCartArticleRemoved( string aggregateRootId, string id, string articleId, string articlenumber, string description, EventMoney price, int quantity, EventMoney total, DateTime dateTime) : base(aggregateRootId, id, dateTime) { ArticleId = articleId; Articlenumber = articlenumber; Description = description; Price = price; Quantity = quantity; Total = total; }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is CashDrawerShiftEvent other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) && ((EventType == null && other.EventType == null) || (EventType?.Equals(other.EventType) == true)) && ((EventMoney == null && other.EventMoney == null) || (EventMoney?.Equals(other.EventMoney) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((Description == null && other.Description == null) || (Description?.Equals(other.Description) == true))); }
public override int GetHashCode() { int hashCode = 1056052778; if (Id != null) { hashCode += Id.GetHashCode(); } if (EmployeeId != null) { hashCode += EmployeeId.GetHashCode(); } if (EventType != null) { hashCode += EventType.GetHashCode(); } if (EventMoney != null) { hashCode += EventMoney.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (Description != null) { hashCode += Description.GetHashCode(); } return(hashCode); }