public void TestContactMapper_MapToContact_WhenFriendContactDto_ShouldReturnFriendContact() { // Arrange var contactDto = new FriendContactDto { Name = "friend", TaxId = 1, Birthday = "birthday" }; // Act var actual = contactMapper.MapToContact(contactDto) as FriendContact; // Assert Assert.IsNotNull(actual); Assert.IsInstanceOfType(actual, typeof(FriendContact)); Assert.AreEqual(contactDto.Name, actual.Name); Assert.AreEqual(contactDto.TaxId, actual.TaxId); Assert.AreEqual(contactDto.Birthday, actual.Birthday); Assert.AreEqual(contactDto.DateCreated, actual.DateCreated); }