public void WhenOpenDisplayClicked_MainPM_IsNotified()
        {
            MockData.GetId().Returns("TestId");
            ActiveLoginPromoButtonPM systemUnderTest = CreateSystem();

            systemUnderTest.OpenDisplayClicked();

            MockDisplayPM.Received().DisplayPromoAndHideOthers("TestId");
        }
        public void WhenCreated_NameProperty_SetAsExpected()
        {
            MockData.GetNameKey().Returns("TestKey");
            MockStringTable.Get("TestKey").Returns("TestName");

            ActiveLoginPromoButtonPM systemUnderTest = CreateSystem();

            Assert.AreEqual("TestName", systemUnderTest.ViewModel.GetPropertyValue <string>(ActiveLoginPromoButtonPM.NAME_PROPERTY));
        }
        private ActiveLoginPromoButtonPM CreateSystem()
        {
            ActiveLoginPromoButtonPM systemUnderTest = new ActiveLoginPromoButtonPM(MockDisplayPM, MockStringTable, MockData);

            return(systemUnderTest);
        }