public void DisposeTest() { _parentTaskService = null; _unitOfWork = null; _parentTaskRepository = null; if (_dbEntities != null) { _dbEntities.Dispose(); } }
public void ReInitializeTest() { _dbEntities = new Mock <ProjectManagerEntities>().Object; _parentTaskRepository = SetUpParentTaskRepository(); var unitOfWork = new Mock <IUnitOfWork>(); unitOfWork.SetupGet(s => s.ParentTaskRepository).Returns(_parentTaskRepository); _unitOfWork = unitOfWork.Object; _parentTaskService = new ParentTaskServices(); }
public void Setup() { _tasks = SetUpTasks(); _dbEntities = new Mock <ProjectManagerEntities>().Object; _taskRepository = SetUpTaskRepository(); var unitOfWork = new Mock <IUnitOfWork>(); unitOfWork.SetupGet(s => s.ParentTaskRepository).Returns(_taskRepository); _unitOfWork = unitOfWork.Object; _taskService = new ParentTaskServices(); _client = new HttpClient { BaseAddress = new Uri(ServiceBaseURL) }; }
public TaskController() { _taskServices = new TaskServices(); _ParenttaskServices = new ParentTaskServices(); }
public ParentController() { _taskServices = new ParentTaskServices(); } // POST: api/Parent
public ParentTaskController() { _taskServices = new ParentTaskServices(); _loggerServices = new LoggerException(); }