public void FindAllTestNotNull()
        {
            // Act
            int result = departmentRepository.FindAll().Count();

            // Assert
            Assert.IsTrue(result >= 0, "Unable to find all properly");
        }
Exemplo n.º 2
0
        public DepartmentDto HelloWorld()
        {
            //return "Hello World";
            DepartmentRepository repository = new DepartmentRepository(new eManagerContext());
            Department           d          = repository.FindAll().First();

            return(new DepartmentDto()
            {
                Id = d.Id,
                Name = d.Name
            });
            //XmlDocument xm = new XmlDocument();
            //return xm.LoadXml(repository.FindAll().ToString());
        }
Exemplo n.º 3
0
        public List <Departments> FindAll(string CurrentUsername)
        {
            List <Departments> DepartmentsLists = DepartmentsRepository.FindAll();

            return(DepartmentsLists);
        }
Exemplo n.º 4
0
 public IActionResult GetAllDepartment()
 {
     return(new OkObjectResult(departmentRepository.FindAll()));
 }
Exemplo n.º 5
0
 public List <Department> FindAllDepartments()
 {
     return(departmentRepository.FindAll().ToList());
 }