Beispiel #1
0
        public async Task ListCharactersGivenStarWarsApiAdapterShouldReturnSomething()
        {
            var swAdapter = new StarWarsApiPeopleAdapter();
            var service   = new StarWarsCharacterDisplayService(swAdapter);

            await CallListCharactersAndAssertContainsExpectedCharacters(service);
        }
Beispiel #2
0
        private static async Task CallListCharactersAndAssertContainsExpectedCharacters(StarWarsCharacterDisplayService service)
        {
            var result = await service.ListCharacters();

            Assert.Contains("Luke Skywalker", result);
            Assert.Contains("Darth Vader", result);
        }