Exemple #1
0
        public virtual ApiAirlineServerRequestModel MapServerResponseToRequest(
            ApiAirlineServerResponseModel response)
        {
            var request = new ApiAirlineServerRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALAirlineMapper();
            ApiAirlineServerRequestModel model = new ApiAirlineServerRequestModel();

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

            response.Name.Should().Be("A");
        }