public void Edit(string currencyCode, [FromBody] MixERP.Net.Entities.Core.Currency currency) { if (currency == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.CurrencyRepository.Update(currency, currencyCode); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch (MixERPException ex) { throw new HttpResponseException(new HttpResponseMessage { Content = new StringContent(ex.Message), StatusCode = HttpStatusCode.InternalServerError }); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Next() { MixERP.Net.Entities.Core.Currency currency = Fixture().GetNext(string.Empty); Assert.NotNull(currency); }
public void First() { MixERP.Net.Entities.Core.Currency currency = Fixture().GetFirst(); Assert.NotNull(currency); }