示例#1
0
        public void GetById_ReturnNull(int id)
        {
            //act
            var service = new SiteService(_siteRepository.Object, _facilityRepository.Object, _logger.Object);
            var item    = service.GetById(id);

            //assert
            Assert.Null(item);
        }
示例#2
0
 public async Task <SiteEditModel> Get(Guid id)
 {
     return(await _service.GetById(id));
 }