public void ReturnsAllStatuses()
        {
            // Arrange
            var service = new StatusService(_statusRepositoryMock);

            // Act
            var allStatuses = service.GetAllStatuses();

            // Assert
            Assert.AreEqual(7, allStatuses.Count());
        }
Beispiel #2
0
        public ActionResult <List <Status> > GetAll()
        {
            var result = _statusService.GetAllStatuses();

            return(Ok(result));
        }