public void CancelEditPerson_PersonViewModelIsUnchanged()
        {
            // Arrange
            var mockPersonViewModel = new Mock <IPersonViewModel>();

            mockPersonViewModel.SetupGet(mock => mock.Name).Returns(k_personName);
            mockPersonViewModel.SetupGet(mock => mock.Address).Returns(k_personAddress);
            mockPersonViewModel.SetupGet(mock => mock.Phone).Returns(k_personPhone);
            mockPersonViewModel.SetupGet(mock => mock.IsActive).Returns(k_personIsActive);
            var systemUnderTest = new EditPersonDialogueViewModel(mockPersonViewModel.Object);

            systemUnderTest.Name            = k_personName2;
            systemUnderTest.Address         = k_personAddress2;
            systemUnderTest.Phone           = k_personPhone2;
            systemUnderTest.IsActive        = k_personIsActive2;
            systemUnderTest.CloseRequested += TestEventHandler;

            //Act
            systemUnderTest.CancelEditPerson(null);

            //Assert
            Assert.AreEqual(k_personName, mockPersonViewModel.Object.Name);
            Assert.AreEqual(k_personAddress, mockPersonViewModel.Object.Address);
            Assert.AreEqual(k_personPhone, mockPersonViewModel.Object.Phone);
            Assert.AreEqual(k_personIsActive, mockPersonViewModel.Object.IsActive);
            Assert.IsNotNull(testEventArgs);
            Assert.AreEqual(false, testEventArgs.DialogResult);
        }
        public void Constructor_Test()
        {
            // Arrange
            var mockPersonViewModel = new Mock <IPersonViewModel>();

            mockPersonViewModel.SetupGet(mock => mock.Name).Returns(k_personName);
            mockPersonViewModel.SetupGet(mock => mock.Address).Returns(k_personAddress);
            mockPersonViewModel.SetupGet(mock => mock.Phone).Returns(k_personPhone);
            mockPersonViewModel.SetupGet(mock => mock.IsActive).Returns(k_personIsActive);

            //Act
            var systemUnderTest = new EditPersonDialogueViewModel(mockPersonViewModel.Object);

            //Assert
            Assert.AreEqual(k_personName, systemUnderTest.Name);
            Assert.AreEqual(k_personAddress, systemUnderTest.Address);
            Assert.AreEqual(k_personPhone, systemUnderTest.Phone);
            Assert.AreEqual(k_personIsActive, systemUnderTest.IsActive);
            Assert.IsNotNull(systemUnderTest.ConfirmEditPersonCommand);
            Assert.IsNotNull(systemUnderTest.CancelEditPersonCommand);
        }