public void Initialize() { _mockedModuleController = new Mock <IModuleController>(); _mockedDialogService = new Mock <IDialogService>(); _customerMaintenanceController = new CustomerMaintenanceController(_mockedModuleController.Object, _mockedDialogService.Object); _view = new CustomerMaintenanceForm(_customerMaintenanceController); }
public CustomerMaintenancePresenter(ICustomerMaintenanceView view) { _view = view; _customerMaintenanceViewModel = new CustomerMaintenanceViewModel(view); _customerModel = new CustomerModel(); _employeeModel = new EmployeeModel(); }
/// <summary> /// Unit Tests Class constructor /// </summary> /// <param name="view">Interface View</param> /// <param name="callCriteriaModel">Mocked model</param> public CustomerMaintenanceViewModel(ICustomerMaintenanceView view, CallCriteriaModel callCriteriaModel) { _view = view; _callCriteriaModel = callCriteriaModel; }
/// <summary> /// Default Class constructor /// </summary> /// <param name="view">Interface View</param> public CustomerMaintenanceViewModel(ICustomerMaintenanceView view) { _view = view; }