コード例 #1
0
ファイル: ViewFactory.cs プロジェクト: DigitasLBiDubai/ATU
 public ViewFactory(IBreadcrumbFactory breadcrumbFactory, ILeftNavFactory leftNavFactory, ITopNavFactory topNavFactory, ITableFactory tableFactory)
 {
     _breadcrumbFactory = breadcrumbFactory;
     _leftNavFactory    = leftNavFactory;
     _topNavFactory     = topNavFactory;
     _tableFactory      = tableFactory;
 }
コード例 #2
0
        public ITableTask AddTask(ITableFactory tableFactory, TaskText taskText)
        {
            var task = tableFactory.NewTask(this, taskText);

            Tasks.Add(task);
            return(task);
        }
コード例 #3
0
ファイル: JiJiaWorkFlowFactory.cs プロジェクト: radtek/jjw
        public void GetTableData(MySqlResponseData data)
        {
            ITableFactory table = null;

            switch (data.TableName.ToLower())
            {
            case "wf_workflowtask":
                table = new WorkFlowTaskBLL();
                break;

            case "b_applyrelation":
                table = new ApplyRelationBLL();
                break;

            case "b_applyinstance":
                table = new ApplyInstanceBLL();
                break;

            default:
                break;
            }
            if (table != null)
            {
                table.DataAnalysis(data);
            }
        }
コード例 #4
0
 public ModelVerification(IEntityTypeRepository typeRepository, ITableFactory tableFactory, int tolerance)
 {
     _tolerance         = tolerance;
     _tableFactory      = tableFactory;
     NameSpacesToIgnore = Enumerable.Empty <string>();
     _typeRepository    = typeRepository;
 }
コード例 #5
0
        public ModelContext(ITableFactory factory)
        {
            tables = new Dictionary <Type, ITable>();

            InitializeTable <Action>(factory);
            InitializeTable <Task>(factory);
            InitializeTable <User>(factory);
        }
コード例 #6
0
 public RestaurantController(IFoodFactory foodFactory, IDrinkFactory drinkFactory,
                             ITableFactory tableFactory)
 {
     this.menu         = new List <IFood>();
     this.drinks       = new List <IDrink>();
     this.tables       = new List <ITable>();
     this.foodFactory  = foodFactory;
     this.drinkFactory = drinkFactory;
     this.tableFactory = tableFactory;
 }
コード例 #7
0
 public RestaurantController(
     )
 {
     tables       = new List <ITable>();
     menu         = new List <IFood>();
     drinks       = new List <IDrink>();
     foodFactory  = new FoodFactory();
     drinkFactory = new DrinkFactory();
     tableFactory = new TableFactory();
 }
コード例 #8
0
        public RestaurantController()
        {
            this.menu   = new List <IFood>();
            this.drinks = new List <IDrink>();
            this.tables = new List <ITable>();

            this.foodFactory  = new FoodFactory();
            this.drinkFactory = new DrinkFactory();
            this.tableFactory = new TableFactory();

            this.totalIncome = 0;
        }
コード例 #9
0
 public WordDocumentRepository(
     IWordKiller wordKiller,
     IExternalHyperLinkFactory externalHyperLinkFactory,
     IWordFactory wordFactory,
     ITableFactory tableFactory,
     IShapeFactory shapeFactory,
     IListFactory listFactory,
     ISectionsFactory sectionsFactory)
 {
     _wordKiller = wordKiller;
     _externalHyperLinkFactory = externalHyperLinkFactory;
     _wordFactory     = wordFactory;
     _tableFactory    = tableFactory;
     _listFactory     = listFactory;
     _sectionsFactory = sectionsFactory;
     _shapeFactory    = shapeFactory;
 }
コード例 #10
0
 public TableService(ITableFactory factory,
                     ITableRepository repository)
 {
     tableFactory    = factory;
     tableRepository = repository;
 }
コード例 #11
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="tablesBuilder"></param>
 public RestaurantService(IWaitingClientsQueueService waitingClientsQueue, ITableFactory tableFactory)
 {
     this.waitingClientsQueue = waitingClientsQueue;
     this.restManager         = new RestManager(tableFactory.CreateTables(), this.waitingClientsQueue);
 }
コード例 #12
0
 public TableManager(ITableFactory factory)
 {
     this.factory = factory;
 }
コード例 #13
0
 public CreateTableCommandHandler(ITableRepository tableRepository, ITableFactory tableFactory)
 {
     this.TableRepository = tableRepository;
     this.TableFactory    = tableFactory;
 }
コード例 #14
0
        private void InitializeTable <T> (ITableFactory factory) where T : Data <T>
        {
            var table = factory.CreateTable <T>();

            tables.Add(typeof(T), table);
        }
コード例 #15
0
ファイル: Table.cs プロジェクト: vetraskr/Pagan
 protected Table(ITableFactory factory, ITableConventions conventions)
 {
     Factory = factory;
     Conventions = conventions;
 }
コード例 #16
0
 public MarkdownFunctionsService(ITableFactory tableFactory)
 {
     _tableFactory = tableFactory;
 }