public void WhenAllPropertiesValid_ThenSucceeds()
            {
                var dto = new DeleteClientApplication
                {
                    Id = "avalue",
                };

                validator.ValidateAndThrow(dto);
            }
        /// <summary>
        /// Provides the Delete request for the 'ClientApplications' resource.
        /// </summary>
        public DeleteClientApplicationResponse Delete(DeleteClientApplication body)
        {
            return(ProcessRequest(body, HttpStatusCode.Accepted, () =>
            {
                var response = this.ClientApplicationsManager.DeleteClientApplication(this.Request, body);

                return response;
            }));
        }
            public void WhenIdIsNull_ThenThrows()
            {
                var dto = new DeleteClientApplication
                {
                    Id = null,
                };

                Assert.Throws <ValidationException>(
                    FluentValidation <DeleteClientApplication> .NotEmptyErrorMessage(x => x.Id),
                    () => validator.ValidateAndThrow(dto));
            }
 DeleteClientApplicationResponse IClientApplicationsManager.DeleteClientApplication(IRequest request,
                                                                                    DeleteClientApplication body)
 {
     DeleteClientApplication(body.Id);
     return(new DeleteClientApplicationResponse());
 }