Arc.Unit.Tests.Infrastructure.Data.ObjectMapperExtensionsTests.Should_map_object_to_destination_object_when_source_type_is_not_given C# (CSharp) Méthode

Should_map_object_to_destination_object_when_source_type_is_not_given() private méthode

        public void Should_map_object_to_destination_object_when_source_type_is_not_given()
        {
            var destination = new DomainObjectDto();
            var actual = _expected.As(destination);

            Assert.That(actual, Is.Not.Null);
            Assert.That(actual, Is.SameAs(destination));
            Assert.That(actual.Id, Is.EqualTo(_expected.Id));
            Assert.That(actual.Name, Is.EqualTo(_expected.Name));
        }