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

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

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

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

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