protected override void EstablishContext()
 {
     _dependency = An <IHaveEvent>();
     _dependency.EventOccurred += (sender, e) => { _wasRaised = true; };
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets all events by their parent.
 /// </summary>
 public IList <Event> GetByParent(IHaveEvent parent)
 {
     return(_eventRepository.Query().Where(x => x.Parent == parent).ToList());
 }
 protected override void EstablishContext()
 {
     _dependency = An<IHaveEvent>();
     _dependency.EventOccurred += (sender, e) => { _wasRaised = true; };
 }