コード例 #1
0
        /// <summary>
        /// 构造翻模框架
        /// </summary>
        /// <param name="useRequestMaker">使用UI层请求制作接口</param>
        /// <param name="useResponseHanlder">使用的响应处理器</param>
        public QuickModelFrameWork(IRequestMaker useRequestMaker, IResponseHanlder useResponseHanlder)
        {
            m_useRequestMaker    = useRequestMaker;
            m_lstGrouperType     = GetTypesInAssembly <IDataGrouper>();
            m_lstBuilderType     = GetTypesInAssembly <IRevitModelRebuilder>();
            m_useResponseHanlder = useResponseHanlder;


            PrepareMap <IDataGrouper, GrouperAttribute>(m_lstGrouperType, m_dicUSeGropuerMap);
            PrepareMap <IRevitModelRebuilder, RebuilderAttribute>(m_lstBuilderType, m_dicUseRebuilderMap);
        }
コード例 #2
0
 public void SetUp()
 {
     urlParamsBuilder = new Mock <IUrlParamsBuilder>();
     requestMaker     = new Hamahakki.RequestMaker(urlParamsBuilder.Object);
 }
コード例 #3
0
 public ItunesSearchManager(IRequestMaker _searchClient)
 {
     this._searchClient = _searchClient;
 }