コード例 #1
0
        public async Task TestDeleteActivityProfileAsync()
        {
            var doc = new ActivityProfileDocument
            {
                Activity = Support.Activity,
                ID       = "test"
            };

            var lrsRes = await _lrs.DeleteActivityProfileAsync(doc);

            Assert.IsTrue(lrsRes.Success);
        }
コード例 #2
0
        /// <summary>
        /// Deletes the activity profile.
        /// </summary>
        /// <param name="activityId">The activity identifier.</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> DeleteActivityProfile(string activityId, string profileId, string matchHash, string noneMatchHash)
        {
            var activity = new Activity {
                ID = activityId
            };

            var doc = new ActivityProfileDocument
            {
                Activity = activity,
                ID       = profileId,
            };

            return(await _lrs.DeleteActivityProfileAsync(doc));
        }