Esempio n. 1
0
        public void MapModelToEntity()
        {
            var mapper = new DALAddressMapper();
            ApiAddressServerRequestModel model = new ApiAddressServerRequestModel();

            model.SetProperties("A", "A", "A", "A", "A");
            Address response = mapper.MapModelToEntity(1, model);

            response.Address1.Should().Be("A");
            response.Address2.Should().Be("A");
            response.City.Should().Be("A");
            response.State.Should().Be("A");
            response.Zip.Should().Be("A");
        }