public void Apply(ProductDescriptionChanged e) { var product = GetById(e.Id); product.Description = e.NewDescription; product.Version = e.Version; repository.Update(product); }
public void Apply(ProductDescriptionChanged e) { var product = GetById(e.Id); product.Description = e.NewDescription; product.Version = e.Version; product.DisplayName = string.Format(displayFormat, product.Name, product.Description); repository.Update(product); }
private void Apply(ProductDescriptionChanged e) { Description = e.NewDescription; }
public void AlterDescription(ProductDescriptionChanged e, int version) { ApplyEvent(e, version); }
public void Apply(ProductDescriptionChanged e) { var product = GetById(e.Id); product.Description = e.NewDescription; }
protected bool Equals(ProductDescriptionChanged other) => base.Equals(other) && Description == other.Description && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
public void WhenProductDescriptionChanged(ProductDescriptionChanged @event) { Description = @event.Description; }