Beispiel #1
0
        public void ProcessController_Get_ShouldCallGetAllMethodOfRepo()
        {
            var controller = new ProcessesController(ProcessRepo.Object);

            var processes = controller.Get();

            ProcessRepo.Verify(repo => repo.GetAll(), Times.Once);
        }
Beispiel #2
0
        public void ProcessController_Get_ShouldReturnIEnumerableOfProcessModel()
        {
            var controller = new ProcessesController(ProcessRepo.Object);

            var processes = controller.Get();

            Assert.That(processes.Value.Any());
        }