public void EnsureGetStreamInfo_uses_retry_strategy()
        {
            var sid = "streamId";

            _streamsApi.GetStreamInfo(sid);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <string, string, StreamAttributes> >(), sid, "sessionToken"));
        }
        public void EnsureGetStreamInfo_uses_retry_strategy()
        {
            var sid = "streamId";

            _apiExecutorMock.Setup(
                apiExecutor => apiExecutor.Execute(It.IsAny <Func <string, string, StreamAttributes> >(), sid, "sessionToken")).Returns(
                new StreamAttributes("id", true, true, new Generated.OpenApi.PodApi.Model.StreamType(Generated.OpenApi.PodApi.Model.StreamType.TypeEnum.IM)));
            _streamsApi.GetStreamInfo(sid);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <string, string, StreamAttributes> >(), sid, "sessionToken"));
        }
        public void EnsureGetStreamInfo_uses_retry_strategy()
        {
            var sid = "streamId";

            _apiExecutorMock.Setup(
                apiExecutor => apiExecutor.Execute(It.IsAny <Func <string, string, CancellationToken, Task <StreamAttributes> > >(), sid, "sessionToken", default(CancellationToken))).Returns(
                new StreamAttributes()
            {
                Id = "id", Active = true, CrossPod = true, StreamType = new Generated.OpenApi.PodApi.StreamType()
                {
                    Type = Generated.OpenApi.PodApi.StreamTypeType.IM
                }
            });
            _streamsApi.GetStreamInfo(sid);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <string, string, CancellationToken, Task <StreamAttributes> > >(), sid, "sessionToken", default(CancellationToken)));
        }