Ejemplo n.º 1
0
 // announcements inside the factory that we react to and realize WHEN thisEventTypeHappened happens
 public void When(FactoryOpened theEvent)
 {
     Id = theEvent.Id;
 }
Ejemplo n.º 2
0
 // announcements inside the factory that we react to and realize WHEN thisEventTypeHappened happens
 // we have to decided to make the trade off between completely private WHEN methods and making them public
 // to keep the syntax more simple while we take advantage of the interface capabilities of the DSL tool via IFactoryState
 public void When(FactoryOpened theEvent)
 {
     Id = theEvent.Id;
 }
Ejemplo n.º 3
0
 void When(FactoryOpened e)
 {
     Id = e.Id;
 }
Ejemplo n.º 4
0
 void When(FactoryOpened e)
 {
     Id = e.Id;
 }
Ejemplo n.º 5
0
        // the approach below is VERY similar to how the FactoryState class reacts to
        // Events to update the state of the FactoryAggregate itself

        public void When(FactoryOpened e)
        {
            Factories[e.Id] = new FactoryInfo();
        }