Ejemplo n.º 1
0
 private static IChildTreeNodeService CreateChildTreeNodeService(
     ITreeNodeCollectionBuilder treeNodeCollectionBuilder)
 {
     return(new ChildTreeNodeService(
                ServiceInjector.Inject <IChildPromptLevelServiceClient>()
                , treeNodeCollectionBuilder));
 }
Ejemplo n.º 2
0
        private IPromptsViewModelService CreatePromptsViewModelService()
        {
            const string absoluteServiceUri = "/Prompts.Service/api/Prompts";
            string       uri;

            if (Application.Current.Host.Source != null)
            {
                uri = new Uri(Application.Current.Host.Source, absoluteServiceUri).AbsoluteUri;
            }
            else
            {
                throw new Exception(
                          "An excpetion occured while trying to resolve 'Application.Current.Host.Source'");
            }

            return(new PromptsViewModelService(
                       new PromptsViewModelBuilder(
                           new PromptBuilder(
                               MultiSelectTreeContainer.Create(),
                               DropDownContainer.Create(),
                               ShoppingCartContainer.Create(),
                               CasscadingSerachContainer.Create(),
                               SingleSelectTreeContainer.Create(),
                               EmptyPromptContainer.Create(),
                               new RecursiveTreeContainer().Create(),
                               new RecursiveSingleSelectTreeContainer().Create())),
                       ServiceInjector.Inject <IPromptServiceClient>()));
        }
Ejemplo n.º 3
0
        private static IReportCatalogServiceClient CreateReportCatalogServiceClient()
        {
            const string absoluteServiceUri = "/Prompts.Service/api/Reports";
            string       uri;

            if (Application.Current.Host.Source != null)
            {
                uri = new Uri(Application.Current.Host.Source, absoluteServiceUri).AbsoluteUri;
            }
            else
            {
                throw new Exception(
                          "An excpetion occured while trying to resolve 'Application.Current.Host.Source'");
            }


            return(ServiceInjector.Inject <IReportCatalogServiceClient>());
        }
Ejemplo n.º 4
0
 private static IChildPromptItemsService CreateChildPromptItemService()
 {
     return(new ChildPromptItemsService(
                ServiceInjector.Inject <IChildPromptLevelServiceClient>()
                , new PromptItemCollectionBuilder()));
 }
Ejemplo n.º 5
0
 protected IReportExecutionService CreateReportExecutionService()
 {
     return(new ReportExecutionService(ServiceInjector.Inject <IPromptSelectionServiceClient>()));
 }