public void When(DraftRecipeCreated e)
 {
     writer.Add(e.Id, new RecipeView
     {
         Id           = e.Id,
         Title        = e.Title,
         Instructions = e.CookingInstructions,
         RecipeStatus = RecipeStatus.Draft
     });
 }
 public void When(DraftRecipeCreated e)
 {
     writer.UpdateEnforcingNew(unit.it,
                               view =>
                                   {
                                       if(!view.Index.ContainsKey(e.Title))
                                           view.Index[e.Title] = new List<Guid>();
                                       view.Index[e.Title].Add(e.Id.Id);
                                   });
 }
 public void When(DraftRecipeCreated e)
 {
     writer.Add(e.Id, new RecipeView
                          {
                              Id = e.Id,
                              Title = e.Title,
                              Instructions = e.CookingInstructions,
                              RecipeStatus = RecipeStatus.Draft
                          });
 }
 public void When(DraftRecipeCreated e)
 {
     writer.UpdateEnforcingNew(unit.it,
                               view =>
     {
         if (!view.Index.ContainsKey(e.Title))
         {
             view.Index[e.Title] = new List <Guid>();
         }
         view.Index[e.Title].Add(e.Id.Id);
     });
 }
 public void When(DraftRecipeCreated e)
 {
     RecipeStatus = RecipeStatus.Draft;
 }
Beispiel #6
0
 public void When(DraftRecipeCreated e)
 {
     RecipeStatus = RecipeStatus.Draft;
 }