public LongPollServerBackgroundWorker() { var apiSettings = DIService.GetSingleton<ApiSettings>(); _sessionInfoRepo = DIService.GetSingleton<SessionInfoRepo>(); _getLongPollServer = new GetLongPollServer(apiSettings); _longPollServerRequest = new LongPollServerRequest(apiSettings); _longPollService = new LongPollService(); }
public void Test() { var getLongPollServer = new GetLongPollServer(ApiSettings.Instance); var longPollServer = getLongPollServer.Get(GlobalData.Instance.AccessToken); if (getLongPollServer.Exception != null) throw getLongPollServer.Exception; Assert.IsNotNull(longPollServer); }
public void Test() { var getLongPollServer = new GetLongPollServer(ApiSettings.Instance); if (getLongPollServer.Exception != null) throw getLongPollServer.Exception; var longPollServer = getLongPollServer.Get(GlobalData.Instance.AccessToken); var longPollServerRequest = new LongPollServerRequest(ApiSettings.Instance); longPollServerRequest.GetUpdates(longPollServer); }