예제 #1
0
        public void CreateB(Guid id)
        {
            var e = new RootBCreatedEvent {
                Message = "RootB created from RootA", Id = id
            };

            AddEvent(e);
        }
예제 #2
0
        public void Create()
        {
            var e = new RootBCreatedEvent {
                Message = "RootB Created from RootB"
            };

            AddEvent(e);
        }
예제 #3
0
 internal void Apply(RootBCreatedEvent e)
 {
     _rootb = new RootB();
     _rootb.Apply(e);
 }
예제 #4
0
 internal void Apply(RootBCreatedEvent obj)
 {
     Id = obj.Id;
     Console.WriteLine(obj.Message);
 }