public virtual void SetUp() { System = new ActorSystemMock(); Timers = new TimerServiceMock(); Reminders = new ReminderServiceMock(); Observers = new ObserverCollectionMock(); }
public override void SetUp() { base.SetUp(); worker = new MockApiWorker(); observers = new ObserverCollectionMock(); api = new Api(worker, observers, Runtime); }
public override void SetUp() { base.SetUp(); worker = new MockApiWorker(); observers = new ObserverCollectionMock(); api = new Api("facebook", Runtime, observers, worker); }
public static TEvent FirstEvent <TEvent>(this ObserverCollectionMock mock) where TEvent : Event { return(mock.Events().OfType <TEvent>().FirstOrDefault()); }
public static IEnumerable <Event> Events(this ObserverCollectionMock mock) { return(mock.RecordedNotifications.Cast <Event>()); }