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

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

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

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

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