public void Edit(long filterId, [FromBody] Frapid.Config.Entities.Filter filter) { if (filter == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.FilterRepository.Update(filter, filterId); } 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.Filter filter = Fixture().GetLast(); Assert.NotNull(filter); }
public void Previous() { Frapid.Config.Entities.Filter filter = Fixture().GetPrevious(0); Assert.NotNull(filter); }