public void MapEntityToModelList()
        {
            var          mapper = new DALAirTransportMapper();
            AirTransport item   = new AirTransport();

            item.SetProperties(1, 1, "A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, DateTime.Parse("1/1/1987 12:00:00 AM"));
            List <ApiAirTransportServerResponseModel> response = mapper.MapEntityToModel(new List <AirTransport>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALAirTransportMapper();
            ApiAirTransportServerRequestModel model = new ApiAirTransportServerRequestModel();

            model.SetProperties(1, "A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, DateTime.Parse("1/1/1987 12:00:00 AM"));
            AirTransport response = mapper.MapModelToEntity(1, model);

            response.AirlineId.Should().Be(1);
            response.FlightNumber.Should().Be("A");
            response.HandlerId.Should().Be(1);
            response.LandDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.PipelineStepId.Should().Be(1);
            response.TakeoffDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }
        public void MapEntityToModel()
        {
            var          mapper = new DALAirTransportMapper();
            AirTransport item   = new AirTransport();

            item.SetProperties(1, 1, "A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, DateTime.Parse("1/1/1987 12:00:00 AM"));
            ApiAirTransportServerResponseModel response = mapper.MapEntityToModel(item);

            response.AirlineId.Should().Be(1);
            response.FlightNumber.Should().Be("A");
            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.LandDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.PipelineStepId.Should().Be(1);
            response.TakeoffDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }