Exemplo n.º 1
0
        public void SetUp()

        {
            contextMock.Setup(x => x.Set <Parent_Task>()).Returns(dbSetMock.Object);
            _repository         = new ParentTaskRepository(contextMock.Object);
            expectedParentTasks = DataInitializer.GetAllParentTasks();
        }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         objPtaskRepo = null;
     }
     base.Dispose(disposing);
 }
        public void Setup()
        {
            userRepository = new UserRepository();
            randomUsers    = new List <Users>();
            randomUsers    = SetupUsers();

            projectRepository = new ProjectRepository();
            randomProjects    = new List <Projects>();
            randomProjects    = SetupProjects();

            parentRepository = new ParentTaskRepository();
            randomParents    = new List <ParentTasks>();
            randomParents    = SetupParent();

            taskRepository = new TaskRepository();
            randomTasks    = new List <TaskData>();
            randomTasks    = SetupTasks();
        }
Exemplo n.º 4
0
 public ParentTaskController()
 {
     repository = new ParentTaskRepository();
 }
Exemplo n.º 5
0
 public ParentTaskController(IParentTaskRepository Repository)
 {
     repository = Repository;
 }
Exemplo n.º 6
0
 public ParentTaskController(IParentTaskRepository _parentTaskRepository)
 {
     parentTaskRepository = _parentTaskRepository;
 }
Exemplo n.º 7
0
 public ParentTaskFacade(IParentTaskRepository taskRepository)
 {
     _taskRepository = taskRepository;
 }
Exemplo n.º 8
0
 public UnitTest3()
 {
     _randomParentTask = SetupParentTask();
     // _randomProjectModel = SetupProjectModel();
     ParentTaskRepository = SetupTaskRepository();
 }
 internal ParentTaskhandler(IParentTaskRepository pTaskrepo)
 {
     this.pTaskrepo = pTaskrepo;
 }
Exemplo n.º 10
0
 //For Testability
 public ParentTaskController(IParentTaskRepository repository)
 {
     _parentTaskRepository = repository;
 }