BusinessLogic.Tests.UnitTests.LogicTests.PlayedGamesTests.PlayedGameSaverTests.CreatePlayedGameTests.It_Doesnt_Bother_Validating_The_Gaming_Group_If_It_Matches_The_Current_Users C# (CSharp) Метод

It_Doesnt_Bother_Validating_The_Gaming_Group_If_It_Matches_The_Current_Users() приватный Метод

        public void It_Doesnt_Bother_Validating_The_Gaming_Group_If_It_Matches_The_Current_Users()
        {
            //--arrange
            var newlyCompletedPlayedGame = CreateValidNewlyCompletedGame();
            newlyCompletedPlayedGame.GamingGroupId = currentUser.CurrentGamingGroupId;

            //--act
            autoMocker.ClassUnderTest.CreatePlayedGame(newlyCompletedPlayedGame, TransactionSource.WebApplication, currentUser);

            //--assert
            autoMocker.Get<ISecuredEntityValidator>().AssertWasNotCalled(mock => mock.RetrieveAndValidateAccess<GamingGroup>(Arg<int>.Is.Anything, Arg<ApplicationUser>.Is.Anything));
        }