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