public async Task TestDeleteStateAsync() { var doc = new StateDocument { Activity = Support.Activity, Agent = Support.Agent, ID = "test" }; var lrsRes = await _lrs.DeleteStateAsync(doc); Assert.IsTrue(lrsRes.Success); }
/// <summary> /// Deletes the state. /// </summary> /// <param name="activityId">The activity identifier.</param> /// <param name="agent">The agent.</param> /// <param name="stateId">The state identifier.</param> /// <param name="registration">The registration.</param> /// <param name="stateVal">The state value.</param> /// <param name="matchHash">The match hash.</param> /// <param name="noneMatchHash">The none match hash.</param> /// <returns>Task<LRSResponse>.</returns> /// <exception cref="System.NotImplementedException"></exception> public async Task <LRSResponse> DeleteState(string activityId, Agent agent, string stateId, Guid?registration, string stateVal, string matchHash, string noneMatchHash) { var activity = new Activity { ID = activityId }; var doc = new StateDocument { Activity = activity, Agent = agent, ID = stateId, Content = Encoding.UTF8.GetBytes(stateVal), Registration = registration }; return(await _lrs.DeleteStateAsync(doc)); }