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