public void MapBOToModel()
        {
            var            mapper = new BOLSpaceFeatureMapper();
            BOSpaceFeature bo     = new BOSpaceFeature();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemple #2
0
        public void MapBOToModelList()
        {
            var            mapper = new BOLSpaceFeatureMapper();
            BOSpaceFeature bo     = new BOSpaceFeature();

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

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