public void GetExchangeRateForMultipleDates_BadResultWithEmptyEndDate() { ExchangeRateSelectedDatesInput exchangeRateInput = GetExchangeRateForMultipleDatesInputModel(); exchangeRateInput.Dates = string.Empty; var exchangeRateController = new ExchangeRateController(); var result = exchangeRateController.GetExchangeRateForMultipleDates(exchangeRateInput); var contentResult = result as BadRequestResult; Assert.IsNotNull(result); }
public void GetExchangeRateForMultipleDates_ValidResult() { ExchangeRateSelectedDatesInput exchangeRateInput = GetExchangeRateForMultipleDatesInputModel(); var exchangeRateController = new ExchangeRateController(); var result = exchangeRateController.GetExchangeRateForMultipleDates(exchangeRateInput); var contentResult = ((OkNegotiatedContentResult <ExchangeRateOutputModel>)(result)); Assert.IsNotNull(contentResult); Assert.IsNotNull(contentResult.Content); }