/// <summary> /// Initializes a new instance of the <see cref="Entity"/> class. /// </summary> /// <param name="applier">The event player and recorder.</param> /// <exception cref="System.ArgumentNullException">Thrown when the <paramref name="applier"/> is null.</exception> protected Entity(Action <object> applier) { if (applier == null) { throw new ArgumentNullException("applier"); } _applier = applier; _router = new InstanceEventRouter(); }
/// <summary> /// Initializes a new instance of the <see cref="EntityState"/> class. /// </summary> protected EntityState() { _router = new InstanceEventRouter(); }
public void SetUp() { _sut = new InstanceEventRouter(); }