Пример #1
0
        public virtual ApiChainStatusServerRequestModel MapServerResponseToRequest(
            ApiChainStatusServerResponseModel response)
        {
            var request = new ApiChainStatusServerRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALChainStatusMapper();
            ApiChainStatusServerRequestModel model = new ApiChainStatusServerRequestModel();

            model.SetProperties("A");
            ChainStatus response = mapper.MapModelToEntity(1, model);

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