public void Edit(int appDependencyId, [FromBody] Frapid.Config.Entities.AppDependency appDependency) { if (appDependency == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.AppDependencyRepository.Update(appDependency, appDependencyId); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch (DataAccessException ex) { throw new HttpResponseException(new HttpResponseMessage { Content = new StringContent(ex.Message), StatusCode = HttpStatusCode.InternalServerError }); } #if !DEBUG catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } #endif }
public void Last() { Frapid.Config.Entities.AppDependency appDependency = Fixture().GetLast(); Assert.NotNull(appDependency); }
public void Previous() { Frapid.Config.Entities.AppDependency appDependency = Fixture().GetPrevious(0); Assert.NotNull(appDependency); }