Exemple #1
0
        public virtual ApiFileTypeServerRequestModel MapServerResponseToRequest(
            ApiFileTypeServerResponseModel response)
        {
            var request = new ApiFileTypeServerRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Exemple #2
0
        public void MapModelToEntity()
        {
            var mapper = new DALFileTypeMapper();
            ApiFileTypeServerRequestModel model = new ApiFileTypeServerRequestModel();

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

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