public async void ReturnLukeGivenIdOf1000() { // When var luke = await _humanRepository.Get(1000); // Then Assert.NotNull(luke); Assert.Equal("Luke Skywalker", luke.Name); }
public async void ReturnLukeHumanGivenId() { var human = await _humanRepository.Get(1000); Assert.NotNull(human); Assert.Equal("Luke Skywalker", human.Name); Assert.Equal(3, human.CharacterEpisodes.Count); Assert.Equal("Tatooine", human.HomePlanet.Name); Assert.Equal(4, human.CharacterFriends.Count); Assert.Contains(human.CharacterFriends, f => f.Friend.Name == "Han Solo"); }