Exemple #1
0
        public async Task ShouldGetMaxStaminaFromPokemonsList()
        {
            ushort maxStamina    = 123;
            ushort lesserStamina = 34;

            Pokemon pokemon1 = PkBuilder.WithStamina(maxStamina);
            Pokemon pokemon2 = PkBuilder.WithStamina(lesserStamina);

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

            PokemonRepository pokemonRepository = new PokemonRepository(pokemonDataSource);

            maxStamina.ShouldBe(await pokemonRepository.GetMaxBaseStamina());
        }