示例#1
0
        public IRepository <StorageEntity, Tid> GetRepository <StorageEntity, Tid>() where StorageEntity : class
        {
            var dataset = _context.GetDataset <StorageEntity>();

            var repository = new ComponentProducer().ProduceRepository <StorageEntity, Tid>(dataset);

            return(repository);
        }
示例#2
0
        public EnTierControllerBase(IObjectMapper mapper)
        {
            var configurationProvider = new DefaultConfigurationsProvider();

            var service = new ComponentProducer().ProduceService <DomainModel, Tid>();

            Initialize(mapper, service, configurationProvider);
        }
        /// <summary>
        /// Method to build a new software city.
        /// </summary>
        /// <param name="root"></param>
        public void Build(ProjectComponent root)
        {
            packageLevel      = 1;
            maxDocumentHeight = 0.0f;

            packageColorizer  = GetComponent <PackageColorizer>();
            componentProducer = GetComponent <ComponentProducer>();
            envelope          = GameObject.FindGameObjectWithTag("Envelope");

            maxHeight = root.GetMaxForMetric(selectedMetrics[1].key);

            GameObject rootGameObject = TraverseTree(root, packageLevel);

            DeleteHelperGameObjects(helperGameObjects);

            AddCityToEnvelope(rootGameObject);

            TreeToLinearStructur(rootGameObject);
        }
示例#4
0
        public ServiceBase()
        {
            Initialize();

            Mapper = new ComponentProducer().ProduceMapper();
        }