public void EnsureCreateRoom_uses_retry_strategy()
        {
            var payload = new V2RoomAttributes();

            _streamsApi.CreateRoom(payload);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <V2RoomAttributes, string, V2RoomDetail> >(), payload, "sessionToken"));
        }
        public void EnsureCreateRoom_uses_retry_strategy()
        {
            var room = new Room("id", DateTime.UtcNow, 12345, true, "name", null, "description", true, true, true, true, true);

            _apiExecutorMock.Setup(
                apiExecutor => apiExecutor.Execute(It.IsAny <Func <V2RoomAttributes, string, V2RoomDetail> >(), It.IsAny <V2RoomAttributes>(), "sessionToken")).Returns(
                new V2RoomDetail(new V2RoomAttributes("name", null, "description", true, true, true, true, true), new RoomSystemInfo("id", 0, 12345, true)));
            _streamsApi.CreateRoom(room);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <V2RoomAttributes, string, V2RoomDetail> >(), It.IsAny <V2RoomAttributes>(), "sessionToken"));
        }
        public void EnsureCreateRoom_uses_retry_strategy()
        {
            var room = new Room("id", DateTime.UtcNow, 12345, true, "name", null, "description", true, true, true, true, true);

            _apiExecutorMock.Setup(
                apiExecutor => apiExecutor.Execute(It.IsAny <Func <V2RoomAttributes, string, CancellationToken, Task <V2RoomDetail> > >(), It.IsAny <V2RoomAttributes>(), "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.CreateRoom(room);
            _apiExecutorMock.Verify(obj => obj.Execute(It.IsAny <Func <V2RoomAttributes, string, CancellationToken, Task <V2RoomDetail> > >(), It.IsAny <V2RoomAttributes>(), "sessionToken", default(CancellationToken)));
        }