public async Task When(Step1Executed e)
 {
     await _writer.Update(e.Id, x =>
     {
         x.Quantity = e.Quantity;
         x.DueDate  = e.DueDate;
     });
 }
Esempio n. 2
0
 public void When(PackageAdded e)
 {
     writer.Update <OrdersView>(e.Id, v =>
     {
         v.Version    = e.Version;
         v.UpdatedOn  = e.CreatedOn;
         v.PackageIds = string.IsNullOrWhiteSpace(v.PackageIds)
             ? e.PackageId.ToString()
             : string.Join(',', new[] { v.PackageIds, e.PackageId.ToString() });
     });
 }
Esempio n. 3
0
 public async Task When(PmToProjectAssigned e)
 {
     await _writer.Update(e.Id, x => x.PmId = e.PmId);
 }