public async Task When(SampleStarted e)
 {
     await _writer.Add(e.Id, new SampleView
     {
         Id = e.Id,
         Name = e.Name,
         Status = SampleStatus.Draft
     });
 }
Example #2
0
 private void When(SampleStarted e)
 {
     Id = e.Id;
     Status = SampleStatus.Draft;
 }