Moq verify ienumerable parameter
When I first encountered Moq, a mocking library for .NET, I was pleased to find that it allows me to verify individual mock calls, which completely eradicates the need of defining expectations. As a result, I can specify mock response behavior in the context setup, and verify how the SUT interacts with the mock in the specifications (tests).To use the Moq library, we need to add "using Moq;" (see line 4). In the unit tests, instead of creating an object of the old MockPlayerDataMapper, and passing it into the Player.CreateNewPlayer function, we will use Moq to create the mock object. Line 24 is how Moq creates an object that implements the IPlayerDataMapper interface.