public void WhenStepIsDone_ManagerDoneMethodIsCalled()
        {
            ISceneStartFlowManager mockManager     = Substitute.For <ISceneStartFlowManager>();
            StubFlowStep           systemUnderTest = new StubFlowStep(mockManager);

            systemUnderTest.Done();

            mockManager.Received().StepFinished();
        }
        public void CommonInstall()
        {
            MockBackend      = Substitute.For <IBackendManager>();
            MockMessenger    = Substitute.For <IMessageService>();
            MockPromoManager = Substitute.For <ILoginPromotionManager>();
            MockAllPromosPM  = Substitute.For <ILoginPromoDisplaysPM>();
            MockFlowManager  = Substitute.For <ISceneStartFlowManager>();
            MockHelper       = Substitute.For <ILoginPromoPopupHelper>();

            SetActiveProgressOnMockManagerWithIds(new List <string>());
        }
 public IShowNewsFlowStep Create(ISceneStartFlowManager i_manager)
 {
     return(factory.Create(i_manager));
 }
Пример #4
0
 public IShowGauntletStep Create(ISceneStartFlowManager i_manager)
 {
     return(factory.Create(i_manager));
 }
Пример #5
0
 public IShowLoginPromosStep Create(ISceneStartFlowManager i_manager)
 {
     return(factory.Create(i_manager));
 }
Пример #6
0
 public ShowNewsFlowStep(INewsManager i_manager, IMessageService i_messenger, IAllNewsPM i_newsPM, ISceneStartFlowManager i_sceneManager) : base(i_sceneManager)
 {
     mMessenger = i_messenger;
     mManager   = i_manager;
     mNewsPM    = i_newsPM;
 }
Пример #7
0
 public IUpcomingMaintenanceFlowStep Create(ISceneStartFlowManager i_manager)
 {
     return(factory.Create(i_manager));
 }
Пример #8
0
 public BaseSceneStartFlowStep(ISceneStartFlowManager i_flowManager)
 {
     mManager = i_flowManager;
 }
 public StubFlowStep(ISceneStartFlowManager i_manager) : base(i_manager)
 {
 }
Пример #10
0
        public UpcomingMaintenanceFlowStep(IUpcomingMaintenanceManager i_manager, IMessageService i_messenger, ISceneStartFlowManager i_sceneManager) :
            base(i_sceneManager)
        {
            mManager   = i_manager;
            mMessenger = i_messenger;

            ListenForMessages(true);
        }
Пример #11
0
 public ShowGauntletStep(ICurrentGauntletManager i_gauntletManager, IEnterGauntletPM i_enterGauntlet, ISceneStartFlowManager i_sceneManager) : base(i_sceneManager)
 {
     mGauntletManager = i_gauntletManager;
     mEnterGauntlet   = i_enterGauntlet;
 }
Пример #12
0
        public ShowLoginPromosStep(IBackendManager i_backend, ILoginPromoPopupHelper i_popupHelper, ILoginPromoDisplaysPM i_allPromosPM, ILoginPromotionManager i_manager, IMessageService i_messenger, ISceneStartFlowManager i_sceneManager) : base(i_sceneManager)
        {
            mMessenger    = i_messenger;
            mPromoManager = i_manager;
            mAllPromosPM  = i_allPromosPM;
            mHelper       = i_popupHelper;

            ActivePromoSaveData = i_manager.GetActivePromoSaveData();
        }