Exemplo n.º 1
0
        public MockProp(MockPropEventHandler eventHandler)
        {
            this.clientHandler = eventHandler;

            // I'm assuming that it also auto-subscribes to the event because it is a constructor parameter.
            this.MockPropEvent += this.clientHandler;
        }
Exemplo n.º 2
0
 // Allow the object to be garbage collected by removing all retaining references.
 public void Release()
 {
     this.MockPropEvent -= this.clientHandler;
     this.clientHandler  = null;
 }