public void ProcessController_Get_ShouldCallGetAllMethodOfRepo() { var controller = new ProcessesController(ProcessRepo.Object); var processes = controller.Get(); ProcessRepo.Verify(repo => repo.GetAll(), Times.Once); }
public void ProcessController_Get_ShouldReturnIEnumerableOfProcessModel() { var controller = new ProcessesController(ProcessRepo.Object); var processes = controller.Get(); Assert.That(processes.Value.Any()); }