Esempio n. 1
0
        public void CreatePersonViewModelTest()
        {
            //Arrange
            var systemUnderTest = new PersonFactory();

            //Act
            IPersonViewModel result = systemUnderTest.CreatePersonViewModel(m_mockPerson.Object);

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