public void CreateB(Guid id) { var e = new RootBCreatedEvent { Message = "RootB created from RootA", Id = id }; AddEvent(e); }
public void Create() { var e = new RootBCreatedEvent { Message = "RootB Created from RootB" }; AddEvent(e); }
internal void Apply(RootBCreatedEvent e) { _rootb = new RootB(); _rootb.Apply(e); }
internal void Apply(RootBCreatedEvent obj) { Id = obj.Id; Console.WriteLine(obj.Message); }