protected override void EstablishContext() { _dependency = An <IHaveEvent>(); _dependency.EventOccurred += (sender, e) => { _wasRaised = true; }; }
/// <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; }; }