public void GetAllTransactionsReturnsAllItems() { // Act var okResult = _controller.GetAllTransactions() as OkObjectResult; // Assert var items = Assert.IsType <List <Transaction> >(okResult.Value); Assert.Equal(2, items.Count); }
public void GetAllTransactionsReturnsAllItems() { // Act var okResult = _controller.GetAllTransactions() as OkObjectResult; // Assert var items = Assert.IsType <List <Transaction> >(okResult.Value); Assert.Equal(2, items.Count); }