예제 #1
0
        public void TaskService_GetAll_CallsRepositoryAll()
        {
            #region Arrange

            #endregion

            #region Act

            var tasks = _taskService.All();

            #endregion

            #region Assert

            _mockTaskRepository.Verify(x => x.All(), Times.Once);
            Assert.AreEqual(_tasks.Count, tasks.Count());

            #endregion
        }