public void Setup() { _subPusherClient = Substitute.For<IPusherRestClient>(); IPusherOptions options = new PusherOptions() { RestClient = _subPusherClient }; Config.AppId = "test-app-id"; Config.AppKey = "test-app-key"; Config.AppSecret = "test-app-secret"; _pusher = new Pusher(Config.AppId, Config.AppKey, Config.AppSecret, options); }
public void Setup() { _subPusherClient = Substitute.For <IPusherRestClient>(); IPusherOptions options = new PusherOptions() { RestClient = _subPusherClient }; Config.AppId = "test-app-id"; Config.AppKey = "test-app-key"; Config.AppSecret = "test-app-secret"; _pusher = new Pusher(Config.AppId, Config.AppKey, Config.AppSecret, options); }
public void Setup() { _subPusherClient = Substitute.For <IPusherRestClient>(); IPusherOptions options = new PusherOptions() { RestClient = _subPusherClient }; Config.AppId = "test-app-id"; Config.AppKey = "test-app-key"; Config.AppSecret = "test-app-secret"; _pusher = new Pusher(Config.AppId, Config.AppKey, Config.AppSecret, options); _subPusherClient.ExecutePostAsync(Arg.Any <IPusherRestRequest>()).Returns(Task.FromResult(new TriggerResult(_v8ProtocolSuccessfulResponse, TriggerResultHelper.TRIGGER_RESPONSE_JSON))); }
public void Setup() { _subPusherClient = Substitute.For<IPusherRestClient>(); IPusherOptions options = new PusherOptions() { RestClient = _subPusherClient }; Config.AppId = "test-app-id"; Config.AppKey = "test-app-key"; Config.AppSecret = "test-app-secret"; _pusher = new Pusher(Config.AppId, Config.AppKey, Config.AppSecret, options); _subPusherClient.ExecutePostAsync(Arg.Any<IPusherRestRequest>()).Returns(Task.FromResult(new TriggerResult(_v8ProtocolSuccessfulResponse, TriggerResultHelper.TRIGGER_RESPONSE_JSON))); }
public void Setup() { _subPusherClient = Substitute.For <IPusherRestClient>(); IPusherOptions options = new PusherOptions() { RestClient = _subPusherClient }; _config = new ApplicationConfig { AppId = "test-app-id", AppKey = "test-app-key", AppSecret = "test-app-secret", }; _pusher = new Pusher(_config.AppId, _config.AppKey, _config.AppSecret, options); }