Example #1
0
 public ActionResult GetProducts()
 {
     return(Ok(_productsService.GetProducts()
               .Select(p => _productConverter.FromDO(p))
               .ToList()));
 }
        public void FromDOTest_WhenModelIsNullReturnsNull()
        {
            ProductDto dto = converter.FromDO(null);

            Assert.IsNull(dto);
        }