コード例 #1
0
        public async Task ShouldGetMembershipsByRoomId()
        {
            var memberships = await _wxTeamsApi.GetRoomMembershipsAsync(StaticTestingValues.JRoom);

            memberships.Should().NotBeNull();
            memberships.Items.Any(x => x.RoomId == StaticTestingValues.JRoom).Should().BeTrue();
            memberships.Items.Any(x => x.PersonEmail == StaticTestingValues.JEmail).Should().BeTrue();
            memberships.Items.Count.Should().Be(2);
        }