示例#1
0
        public virtual ApiMutexResponseModel MapBOToModel(
            BOMutex boMutex)
        {
            var model = new ApiMutexResponseModel();

            model.SetProperties(boMutex.Id, boMutex.JSON);

            return(model);
        }
        public void MapResponseToRequest()
        {
            var mapper = new ApiMutexModelMapper();
            var model  = new ApiMutexResponseModel();

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

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