Beispiel #1
0
        /// <summary>
        /// Deletes the agent profile.
        /// </summary>
        /// <param name="agent">The agent.</param>
        /// <param name="profileId">The profile identifier.</param>
        /// <param name="matchHash">The match hash.</param>
        /// <param name="noneMatchHash">The none match hash.</param>
        /// <returns>Task&lt;LRSResponse&gt;.</returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public async Task <LRSResponse> DeleteAgentProfile(Agent agent, string profileId, string matchHash, string noneMatchHash)
        {
            var doc = new AgentProfileDocument
            {
                Agent = agent,
                ID    = profileId,
            };

            return(await _lrs.DeleteAgentProfileAsync(doc));
        }
Beispiel #2
0
        public async Task TestDeleteAgentProfileAsync()
        {
            var doc = new AgentProfileDocument
            {
                Agent = Support.Agent,
                ID    = "test"
            };

            var lrsRes = await _lrs.DeleteAgentProfileAsync(doc);

            Assert.IsTrue(lrsRes.Success);
        }