Beispiel #1
0
        public void CreateTestEntity()
        {
            var e = new NonRootEntityCreatedEvent {
                Id = Guid.NewGuid(), Message = "NonRootEntity created from RootB"
            };

            AddEvent(e);
        }
Beispiel #2
0
 internal void Apply(NonRootEntityCreatedEvent obj)
 {
     _nonRootEntity = new NonRootEntity(obj.Id);
     Console.WriteLine(obj.Message);
 }