Exemple #1
0
        public virtual ApiPersonRefResponseModel MapBOToModel(
            BOPersonRef boPersonRef)
        {
            var model = new ApiPersonRefResponseModel();

            model.SetProperties(boPersonRef.Id, boPersonRef.PersonAId, boPersonRef.PersonBId);

            return(model);
        }
        public void MapResponseToRequest()
        {
            var mapper = new ApiPersonRefModelMapper();
            var model  = new ApiPersonRefResponseModel();

            model.SetProperties(1, 1, 1);
            ApiPersonRefRequestModel response = mapper.MapResponseToRequest(model);

            response.PersonAId.Should().Be(1);
            response.PersonBId.Should().Be(1);
        }