예제 #1
0
 public virtual void SetUp()
 {
     System    = new ActorSystemMock();
     Timers    = new TimerServiceMock();
     Reminders = new ReminderServiceMock();
     Observers = new ObserverCollectionMock();
 }
예제 #2
0
        public override void SetUp()
        {
            base.SetUp();

            worker    = new MockApiWorker();
            observers = new ObserverCollectionMock();

            api = new Api(worker, observers, Runtime);
        }
예제 #3
0
        public override void SetUp()
        {
            base.SetUp();

            worker    = new MockApiWorker();
            observers = new ObserverCollectionMock();

            api = new Api("facebook", Runtime, observers, worker);
        }
예제 #4
0
 public static TEvent FirstEvent <TEvent>(this ObserverCollectionMock mock) where TEvent : Event
 {
     return(mock.Events().OfType <TEvent>().FirstOrDefault());
 }
예제 #5
0
 public static IEnumerable <Event> Events(this ObserverCollectionMock mock)
 {
     return(mock.RecordedNotifications.Cast <Event>());
 }