public void WhenPromoIsDismissed_IfNoOtherPromos_StepIsDone() { SetActiveProgressOnMockManagerWithIds(new List <string>() { "Test_1" }); ShowLoginPromosStep systemUnderTest = CreateSystem(); systemUnderTest.Start(); systemUnderTest.ProcessNextPromotion(); CheckStepIsDone(); }
public void WhenPromoIsDismissed_IfOtherPromos_NextPromoIsShown() { MockHelper.ShouldShowPromoAsPopup(Arg.Any <ISingleLoginPromoProgressSaveData>(), Arg.Any <ILoginPromotionData>()).Returns(true); SetActiveProgressOnMockManagerWithIds(new List <string>() { "Test_1", "Test_2" }); ShowLoginPromosStep systemUnderTest = CreateSystem(); systemUnderTest.Start(); systemUnderTest.ProcessNextPromotion(); MockAllPromosPM.Received().DisplayPromoAndHideOthers("Test_2"); }