public DAPEntity() { this.CurrentEntity = (T)Activator.CreateInstance(typeof(T)); eventBroker = new DAPEventBroker(); eventBroker.Commands += EventBroker_Commands; eventBroker.Queries += EventBroker_Queries; }
public Person(DAPEventBroker currentBroker) { this.eventBroker = currentBroker; eventBroker.Commands += EventBroker_Commands; eventBroker.Queries += EventBroker_Queries; }