示例#1
0
        public virtual ApiInvitationResponseModel MapBOToModel(
            BOInvitation boInvitation)
        {
            var model = new ApiInvitationResponseModel();

            model.SetProperties(boInvitation.Id, boInvitation.InvitationCode, boInvitation.JSON);

            return(model);
        }
示例#2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiInvitationModelMapper();
            var model  = new ApiInvitationResponseModel();

            model.SetProperties("A", "A", "A");
            ApiInvitationRequestModel response = mapper.MapResponseToRequest(model);

            response.InvitationCode.Should().Be("A");
            response.JSON.Should().Be("A");
        }