Esempio n. 1
0
        public void ListQuotes_Error()
        {
            var mockStocks = new Mock <IStocksManager>();

            mockStocks.Setup(stocks => stocks.stocksValues).Returns(new List <StockValue>());
            controller = new StocksController(mockLogger.Object, repoWrapper, mockStocks.Object);
            var response = controller.ListQuotes();

            Assert.IsType <NoContentResult>(response);
        }
Esempio n. 2
0
        public void ListQuotes_Ok()
        {
            var response = controller.ListQuotes();

            Assert.IsType <OkObjectResult>(response);
        }