public void AgendaDeleteRequest_DoesNotFail() { // Arrange var model = new AgendaDeleteRequestPostModel(); // Act var data = _accountClient.Agendas.DeleteRequest(model).AssertResult(); // Assert Assert.True(data); }
public async Task AgendaDeleteRequestAsync_DoesNotFail() { // Arrange var model = new AgendaDeleteRequestPostModel(); // Act var data = (await _accountClient.Agendas.DeleteRequestAsync(model)).AssertResult(); // Assert Assert.True(data); }
/// <summary> /// Request to delete the agenda. Deletion of the agenda has to be confirmed by clicking on the link in the email. /// </summary> /// <param name="model">Reasons for deleting the agenda.</param> /// <returns><c>true</c>.</returns> public ApiResult <bool> DeleteRequest(AgendaDeleteRequestPostModel model) { return(_client.Post <AgendaDeleteRequestPostModel, bool>(DeleteRequestUrl, model)); }
/// <summary> /// Request to delete the agenda. Deletion of the agenda has to be confirmed by clicking on the link in the email. /// </summary> /// <param name="model">Reasons for deleting the agenda.</param> /// <param name="cancellationToken">Cancellation token.</param> /// <returns><c>true</c>.</returns> public Task <ApiResult <bool> > DeleteRequestAsync(AgendaDeleteRequestPostModel model, CancellationToken cancellationToken = default) { return(_client.PostAsync <AgendaDeleteRequestPostModel, bool>(DeleteRequestUrl, model, cancellationToken)); }