public async Task Returns_Pokemon_When_Found() { // Arrange const string name = "mewtwo"; _mocker.GetMock <IPokemonRepository>() .Setup(x => x.GetAsync(name)) .ReturnsAsync(new Pokemon { Name = name, Description = "description", Habitat = "habitat", IsLegendary = false }); // Act var actual = await SUT.GetAsync(name); // Assert actual.Should().BeEquivalentTo(new { Name = name, Description = "description", Habitat = "habitat", IsLegendary = false }); }