public async void url_resource_is_in_expected_format()
        {
            await _pusher.TriggerAsync(_channelName, _eventName, _eventData);

#pragma warning disable 4014
            _subPusherClient.Received().ExecutePostAsync(
#pragma warning restore 4014
                Arg.Is <IPusherRestRequest>(
                    x => x.ResourceUri.StartsWith("/apps/" + Config.AppId + "/events?")
                    )
                );
        }
Exemple #2
0
        public async Task url_is_in_expected_format()
        {
            await _pusher.GetAsync <object>("/channels");

#pragma warning disable 4014
            _subPusherClient.Received().ExecuteGetAsync <object>(
#pragma warning restore 4014
                Arg.Is <IPusherRestRequest>(
                    x => x.ResourceUri.StartsWith("/apps/" + _config.AppId + "/channels")
                    )
                );
        }