public void Setup() { iInvoker = new MockInvoker(); iWaitHandleInvoker = new AutoResetEvent(false); iPersistence = new MockPersistence { LastNotificationVersion = 0 }; iServer = new MockNotificationServer(); iNotificationVersion1 = new NotificationVersion() { Uri = "http://notifications/1", Version = 1 }; iNotificationVersion2 = new NotificationVersion() { Uri = "http://notifications/2", Version = 2 }; iServerResponseV1 = new NotificationServerResponse() { Notifications = new NotificationVersion[] { iNotificationVersion1 } }; iServerResponseV2 = new NotificationServerResponse() { Notifications = new NotificationVersion[] { iNotificationVersion1, iNotificationVersion2 } }; iView = new MockNotificationView(iInvoker); }
public void SetDesiredResponse(NotificationServerResponse aResponse) { iResponse = aResponse; }