Esempio n. 1
0
        public void Mapping_Latitude_To_Destination_Object()
        {
            var profile = new RouteStopMapper();

            Mapper.AddProfile(profile);

            var dest = Mapper.Map <AddressSearch, Point>(_search);

            Assert.AreEqual(dest.x, _search.Latitude);
        }
Esempio n. 2
0
        public void Mapping_Street_To_Destination_Object()
        {
            var profile = new RouteStopMapper();

            Mapper.AddProfile(profile);

            var dest = Mapper.Map <AddressSearch, RouteStop>(_search);

            Assert.AreEqual(dest.description, _search.StreetName);
        }