public void EnsureGetRoomInfo_uses_retry_strategy()
        {
            const string id = "id";

            _streamsApi.GetRoomInfo(id);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <string, string, V2RoomDetail> >(), id, "sessionToken"));
        }
        public void EnsureGetRoomInfo_uses_retry_strategy()
        {
            const string id = "id";

            _apiExecutorMock.Setup(
                apiExecutor => apiExecutor.Execute(It.IsAny <Func <string, string, V2RoomDetail> >(), id, "sessionToken")).Returns(
                new V2RoomDetail(
                    new V2RoomAttributes("name", null, "description", true, true, true, true, true),
                    new RoomSystemInfo("id", 0, 0, true)));
            _streamsApi.GetRoomInfo(id);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <string, string, V2RoomDetail> >(), id, "sessionToken"));
        }
        public void EnsureGetRoomInfo_uses_retry_strategy()
        {
            const string id = "id";

            _apiExecutorMock.Setup(
                apiExecutor => apiExecutor.Execute(It.IsAny <Func <string, string, CancellationToken, Task <V2RoomDetail> > >(), "id", "sessionToken", default(CancellationToken))).Returns(
                new V2RoomDetail()
            {
                RoomAttributes = new V2RoomAttributes()
                {
                    Name = "name", Description = "description", CopyProtected = true, Discoverable = true, MembersCanInvite = true, Public = true, ReadOnly = true
                },
                RoomSystemInfo = new RoomSystemInfo()
                {
                    Id = "id", CreationDate = 12345678, CreatedByUserId = 12345, Active = true
                }
            });
            _streamsApi.GetRoomInfo(id);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <string, string, CancellationToken, Task <V2RoomDetail> > >(), "id", "sessionToken", default(CancellationToken)));
        }