public void Generate_WithGymMembers_ShouldHaveFormattedLineForEachMember()
        {
            var actionResponse = MakeActionResponse();

            var message = _service.Generate(actionResponse);

            var lines = message.Trim().Split(Environment.NewLine).Skip(1);
            int i     = 0;

            foreach (string line in lines)
            {
                PokemonData pokemonData = actionResponse.GymState.Memberships[i].PokemonData;
                int         runs        = new FightCountService().Count(pokemonData.Cp, pokemonData.DisplayCp);

                string expectedLine = $"{i + 1}. ";
                expectedLine += $"{pokemonData.PokemonId.ToString()} ";
                expectedLine += $"{pokemonData.DisplayCp} {runs} run(s) - ";
                expectedLine += $"{pokemonData.OwnerName}";
                Assert.Equal(expectedLine, line);
                i += 1;
            }
        }
 public GymStateMessageService(FightCountService fightCountService)
 {
     _fightCountService = fightCountService;
 }
 public FightCountServiceTest()
 {
     _service = new FightCountService();
 }