Example #1
0
        public void MapModelToBO()
        {
            var mapper = new BOLPersonRefMapper();
            ApiPersonRefRequestModel model = new ApiPersonRefRequestModel();

            model.SetProperties(1, 1);
            BOPersonRef response = mapper.MapModelToBO(1, model);

            response.PersonAId.Should().Be(1);
            response.PersonBId.Should().Be(1);
        }
Example #2
0
        public void MapBOToModel()
        {
            var         mapper = new BOLPersonRefMapper();
            BOPersonRef bo     = new BOPersonRef();

            bo.SetProperties(1, 1, 1);
            ApiPersonRefResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.PersonAId.Should().Be(1);
            response.PersonBId.Should().Be(1);
        }
Example #3
0
        public void MapBOToModelList()
        {
            var         mapper = new BOLPersonRefMapper();
            BOPersonRef bo     = new BOPersonRef();

            bo.SetProperties(1, 1, 1);
            List <ApiPersonRefResponseModel> response = mapper.MapBOToModel(new List <BOPersonRef>()
            {
                { bo }
            });

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