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