BusinessLogic.Tests.UnitTests.LogicTests.PlayersTests.PlayerSaverTests.CreatePlayerTests.ItAssociatesThePlayerWithTheSpecifiedGamingGroup C# (CSharp) Method

ItAssociatesThePlayerWithTheSpecifiedGamingGroup() private method

private ItAssociatesThePlayerWithTheSpecifiedGamingGroup ( ) : void
return void
        public void ItAssociatesThePlayerWithTheSpecifiedGamingGroup()
        {
            //--arrange
            _createPlayerRequest.GamingGroupId = 53;

            //--act
            _autoMocker.ClassUnderTest.CreatePlayer(_createPlayerRequest, _currentUser);

            //--assert
            _autoMocker.Get<IDataContext>().AssertWasCalled(mock => mock.Save(
                Arg<Player>.Matches(savedPlayer => savedPlayer.GamingGroupId == _createPlayerRequest.GamingGroupId),
                Arg<ApplicationUser>.Is.Anything));
        }