BusinessLogic.Tests.UnitTests.LogicTests.ChampionsTests.ChampionRecalculatorTests.RecalculateChampionTests.ItRemovesTheChampionIfAllowedAndTheNewChampionIsNullAndOneAlreadyExisted C# (CSharp) Метод

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

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

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

            _autoMocker.Get<IDataContext>().AssertWasCalled(mock => mock.Save(
                Arg<GameDefinition>.Matches(gameDefinition => gameDefinition.ChampionId == null), 
                Arg<ApplicationUser>.Is.Equal(_applicationUser)));
        }