public void CreateTechnician(Technician tech, List <Service> skills)
        {
            techCtr.Create(tech);

            foreach (Service i in skills)
            {
                techCtr.Add(i, tech);
            }
        }
Exemplo n.º 2
0
        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);
        }