BusinessLogic.Tests.UnitTests.LogicTests.ChampionsTests.ChampionRecalculatorTests.RecalculateChampionTests.ItDoesNotRemoveTheExistingChampionIfNotAllowedAndTheNewChampionIsNullAndOneAlreadyExisted C# (CSharp) Method

ItDoesNotRemoveTheExistingChampionIfNotAllowedAndTheNewChampionIsNullAndOneAlreadyExisted() private method

        public void ItDoesNotRemoveTheExistingChampionIfNotAllowedAndTheNewChampionIsNullAndOneAlreadyExisted()
        {
            _autoMocker.Get<IChampionRepository>().Expect(mock => mock.GetChampionData(_gameDefinitionId))
                .Return(new NullChampionData());

            _autoMocker.ClassUnderTest.RecalculateChampion(_gameDefinitionId, _applicationUser, false);

            _autoMocker.Get<IDataContext>().AssertWasNotCalled(mock => mock.Save(
                Arg<GameDefinition>.Is.Anything,
                Arg<ApplicationUser>.Is.Anything));
        }