示例#1
0
        public void GetCurrencies_Should_ReturnDataFromRepository()
        {
            _repository.Setup(x => x.GetCurrencies())
            .Returns(new List <string> {
                "USD", "THB", "JPY"
            });

            var result = _manager.GetCurrencies();

            Assert.AreEqual(3, result.Count);
        }
        public IActionResult Get()
        {
            var currencies = _manager.GetCurrencies();

            return(Ok(currencies));
        }