コード例 #1
0
        public void MapBOToModel()
        {
            var       mapper = new BOLAirlineMapper();
            BOAirline bo     = new BOAirline();

            bo.SetProperties(1, "A");
            ApiAirlineResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
コード例 #2
0
        public void MapBOToModelList()
        {
            var       mapper = new BOLAirlineMapper();
            BOAirline bo     = new BOAirline();

            bo.SetProperties(1, "A");
            List <ApiAirlineResponseModel> response = mapper.MapBOToModel(new List <BOAirline>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }