public void TestDefendAgainstMagic() { _player.MagicResistance = 15; _repo.AddPlayerToDirectory(_player); Console.WriteLine(_repo.DefendAgainstMagic(_player.PlayerName, _player)); Console.WriteLine(_player.PlayerName); Console.WriteLine(_player.MagicResistance); }