示例#1
0
        public async Task ShouldGetMaxAttackFromPokemonsList()
        {
            ushort maxAttack    = 123;
            ushort lesserAttack = 34;

            Pokemon pokemon1 = PkBuilder.WithAttack(maxAttack);
            Pokemon pokemon2 = PkBuilder.WithAttack(lesserAttack);

            SetUpDataSourceMockData(new Pokemon[] { pokemon1, pokemon2 });

            PokemonRepository pokemonRepository = new PokemonRepository(pokemonDataSource);

            maxAttack.ShouldBe(await pokemonRepository.GetMaxBaseAttack());
        }