Beispiel #1
0
 private void CreateSingleRewardPMs(List <IDungeonReward> i_rewards)
 {
     SingleRewardPMs = new List <ISingleRewardPM>();
     foreach (IDungeonReward reward in i_rewards)
     {
         SingleRewardPMs.Add(mSpawner.Create(reward, this));
     }
 }
        public void WhenCreated_SpawnedRewardPM_IsUncovered()
        {
            ISingleRewardPM mockRewardPM = Substitute.For <ISingleRewardPM>();

            MockRewardPMSpawner.Create(Arg.Any <IDungeonReward>(), Arg.Any <IAllRewardsPM>()).Returns(mockRewardPM);

            SingleLoginPromoRewardPM systemUnderTest = CreateSystem(0);

            mockRewardPM.Received().UncoverReward();
        }