public void Should_map_basic_properties(object[] tuple, string[] aliases, Person expected) { var transfomer = new CustomTransformer<Person>(); var result = transfomer.TransformTuple(tuple, aliases); var actual = result as Person; actual.Firstname.Should().Be(expected.Firstname); actual.Lastname.Should().Be(expected.Lastname); actual.Id.Should().Be(expected.Id); }
public void Should_map_one_to_one_relation(object[] tuple, string[] aliases, Person expected) { var transfomer = new CustomTransformer<Person>(); var result = transfomer.TransformTuple(tuple, aliases); var actual = result as Person; actual.Firstname.Should().Be(expected.Firstname); actual.Lastname.Should().Be(expected.Lastname); actual.Id.Should().Be(expected.Id); actual.Address.Should().NotBeNull(); actual.Address.City.Should().Be(expected.Address.City); actual.Address.Street.Should().Be(expected.Address.Street); actual.Address.Zipcode.Should().Be(expected.Address.Zipcode); }