public void GetAllAlwaysNotNull() { _repo.Setup(r => r.All(_prodId)).Returns(new Guid[] { }); var result = _service.GetAll(_prodId); result.Should().NotBeNull(); }
public IHttpActionResult Get(Guid productId) { var result = new ItemLists <ProductOptionsDto>() { Items = _mapper.Map <IEnumerable <ProductOptionsDto> >(_service.GetAll(productId)) }; return(Ok(result)); }