public void CreateTechnician(Technician tech, List <Service> skills) { techCtr.Create(tech); foreach (Service i in skills) { techCtr.Add(i, tech); } }
public void Add_Returns_ViewResult() { //Arrange var repo = new Mock <IRepository <Technician> >(); var controller = new TechnicianController(repo.Object); //Act var result = controller.Add(); //Assert Assert.IsType <ViewResult>(result); }