コード例 #1
0
        public void Issue_Should_Map_To_Redmine_Issue()
        {
            var redmineRepository = new RedmineRepository();
            var mapper            = MappingBuilder.Build();

            var testIssue    = MakeTestIssue();
            var redmineIssue = mapper.Map <Issue>(testIssue);
            var commonIssue  = mapper.Map <CommonRemineEntities.Issue>(redmineIssue);
        }
コード例 #2
0
        private Mapping <SqlStorageModel <TEntity>, SqlStorageField <TEntity>, TypeModel <TView>, PropertyField> BuildMapping()
        {
            lock (_syncLock)
            {
                if (_mapping != null)
                {
                    return(_mapping);
                }

                var builder = new MappingBuilder <SqlStorageModel <TEntity>, SqlStorageField <TEntity>, TypeModel <TView>, PropertyField>(this);
                return(builder.Build());
            }
        }