Exemple #1
0
 public static void CreateRootClient1()
 {
     InitSample();
     Client1.Execute <EventSourcedRoot>(new TestCommand1
     {
         AggregateId = TestId,
         Name        = "Name",
     });
 }
Exemple #2
0
 public static void EditClient2()
 {
     InitSample();
     Client2.Execute <EventSourcedRoot>(new TestCommand1
     {
         AggregateId = TestId,
         Name        = "Client 2 Edit " + DateTime.Now.Second.ToString(),
     });
     Client2.Execute <EventSourcedRoot>(new TestCommand2
     {
         AggregateId = TestId,
         Amount      = 50,
     });
 }