Пример #1
0
        public void GetDepartmentImages_HasImages_ReturnsImages()
        {
            _subDepartmentImageRepository.GetDepartmentImages(1, 1).Returns(new[]
            {
                new DepartmentImage(),
            });

            DepartmentImageService service = CreateService();

            DepartmentImage[] departmentImages = service.GetDepartmentImages(1, 1);

            Assert.IsNotEmpty(departmentImages);
        }
Пример #2
0
 public DepartmentImage[] GetDepartmentImages(int companyNo, int departmentNo)
 {
     DepartmentImage[] imgs = _departmentImageRepository.GetDepartmentImages(companyNo, departmentNo);
     return(imgs);
 }