public void CursusInstatnieController_GetCursusInstantie_TypeOfIEnumerable() { //Arrange var mockRepository = new Mock <ICursusInstantieRepository>(); var controller = new CursusInstantieController(mockRepository.Object); //Act var result = controller.GetAllCursusInstanties(); //Assert Assert.IsInstanceOfType(result, typeof(IEnumerable <CursusInstantie>)); }
public void CursusInstantieController_GetCursusInstantie_NotNull() { //Arrange var mockRepository = new Mock <ICursusInstantieRepository>(); var controller = new CursusInstantieController(mockRepository.Object); //Act var result = controller.GetAllCursusInstanties(); //Assert Assert.IsNotNull(result); }