private ItDoesNotRemoveTheExistingChampionIfNotAllowedAndTheNewChampionIsNullAndOneAlreadyExisted ( ) : void | ||
return | void |
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));
}