public void ConectionTest() { var testTokenValue = Guid.Parse("4a01b7ed-27d7-4312-9a63-71c53a70dc81"); var getConnectionResponseData = hub.connection(testTokenValue.ToString()); //測試連線 //呼叫測試methods var getGroupResponseData = hub.getGroup(testTokenValue); //取得上課列表 var loadRecordListResponseData = hub.LoadRecordList(testTokenValue); //取得訊息紀錄列表 var loadNoticeListResponseData = hub.LoadNoticeList(testTokenValue); //取得即時訊息列表 //驗證server showCircleList的caller資料 client.Verify(m => m.showCircleList(It.IsAny <List <LearningCircle> >())); //驗證server showRecordList的caller資料 client.Verify(m => m.showRecordList(It.IsAny <IEnumerable <ActivitysLatest> >())); //驗證server showNoticeList的caller資料 client.Verify(m => m.showNoticeList(It.IsAny <ActivitysNoticeViewModel>())); if (showData) { ShowData(client.Invocations); } }