Example #1
0
        public IActionResult GetCustomers([FromQuery] string search = "")
        {
            var customersFromRepo = _talaCustomerRepository.GetAll(search);
            var customers         = Mapper.Map <IEnumerable <CustomerDto> >(customersFromRepo);

            return(Ok(customers));
        }
Example #2
0
        public IActionResult GetFolders([FromQuery] string search = "")
        {
            var foldersFromRepo = _talaFileRepository.GetAll(search);
            var folders         = Mapper.Map <IEnumerable <FileDto> >(foldersFromRepo);

            return(Ok(folders));
        }
Example #3
0
        public void ShouldGet2Customers()
        {
            var queryresult = _sut.GetAll("").ToList();

            Assert.Equal(2, queryresult.Count);
        }