public void Create_ValidDto_ReturnTrue() { IconDto newIconDto = new IconDto() { Path = "/images/Icons/light_sensor.png" }; Icon newIcon = new Icon() { Path = "/images/Icons/light_sensor.png" }; mockMapper.Setup(m => m .Map <IconDto, Icon>(newIconDto)) .Returns(newIcon); mockUnitOfWork.Setup(uow => uow .IconRepo.Insert(newIcon)); var result = _manager.Create(newIconDto); Assert.IsTrue(result.Result.Succeeded); }