public async Task PostAsync_CreateAnimalDto_ReturnsCreateAnimalDto( [Frozen] Mock <IAnimalService> _animalService, [Frozen] Mock <CreateAnimalDto> animalDto) { //Arrange _mapper.Setup(x => x.Map <CreateAnimalDto>(It.IsAny <Animal>())); var Sut = new AnimalsController(_animalService.Object, _mapper.Object); //Act var actual = await Sut.PostAsync(animalDto.Object); //Assert _animalService.Verify(x => x.CreateAnimal(It.IsAny <Animal>())); Assert.NotNull(actual); Assert.IsType <CreatedResult>(actual); }