コード例 #1
0
        public void FindAllTestNotNull()
        {
            // Act
            int result = departmentRepository.FindAll().Count();

            // Assert
            Assert.IsTrue(result >= 0, "Unable to find all properly");
        }
コード例 #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());
        }
コード例 #3
0
        public List <Departments> FindAll(string CurrentUsername)
        {
            List <Departments> DepartmentsLists = DepartmentsRepository.FindAll();

            return(DepartmentsLists);
        }
コード例 #4
0
 public IActionResult GetAllDepartment()
 {
     return(new OkObjectResult(departmentRepository.FindAll()));
 }
コード例 #5
0
 public List <Department> FindAllDepartments()
 {
     return(departmentRepository.FindAll().ToList());
 }