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