public EmployeeControllerTests()
 {
     _employeeRepository = new Mock<IEmployeeRepository>();
     _employeeController = new EmployeeController(_employeeRepository.Object);
     var mockModelMetadataProvider = new Mock<IModelMetadataProvider>();
     var viewDataDictionary = new ViewDataDictionary<object>(mockModelMetadataProvider.Object);
     _employeeController.ViewData = viewDataDictionary;
 }
Пример #2
0
 private void btn1_Click(object sender, RoutedEventArgs e)
 {
     EmployeeController controller = new EmployeeController();
     controller.Start();
 }