public void ToDomainClass_Returns_NewObjectOfBaseClassType() { var contactA = new Contact { Id = Guid.NewGuid(), FirstName = "Test", LastName = "User01", EmailAddress = "*****@*****.**", DateCreated = DateTime.Now, Active = true }; var contactEntity = new ContactEntity(contactA); var contactB = contactEntity.ToDomainClass(); Assert.AreEqual(contactA.FirstName, contactB.FirstName); Assert.AreEqual(contactA.LastName, contactB.LastName); Assert.AreEqual(contactA.EmailAddress, contactB.EmailAddress); Assert.AreEqual(contactA.DateCreated, contactB.DateCreated); Assert.AreEqual(contactA.Active, contactB.Active); }