Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityState"/> class.
 /// </summary>
 protected EntityState()
 {
     _router = new InstanceEventRouter();
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     _sut = new InstanceEventRouter();
 }