コード例 #1
0
        public async Task AgentyTeamApi_default_client_is_disposed()
        {
            var api = new AgentyApi("api_key");

            api.Dispose();

            Assert.ThrowsAsync <ObjectDisposedException>(() => api.Teams.GetAllTeamMembersAsync());
        }
コード例 #2
0
        public async Task AgentyApi_is_disposed_successfully()
        {
            var api = new AgentyApi("api_key");

            api.Dispose();
        }