Exemplo n.º 1
0
 public void Setup()
 {
     Logger = new TestLogger();
     OrganizationService = new TestConnectionManager().CreateConnection();
     ArtifactsDirectory  = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\Artifacts";
     LogsDirectory       = TestContext.TestLogsDir;
     Manager             = new SolutionComponentsManager(Logger, OrganizationService);
 }
        protected override void ProcessRecord()
        {
            Logger.LogVerbose("Entering Get-XrmSolutionMissingDependencies");

            base.ProcessRecord();

            Logger.LogVerbose("Retrieving missing dependencies for {0}", UniqueSolutionName);

            SolutionComponentsManager manager = new SolutionComponentsManager(Logger, OrganizationService);

            EntityCollection dependencies = manager.GetMissingDependencies(UniqueSolutionName);

            WriteObject(dependencies);

            Logger.LogVerbose("Leaving Get-XrmSolutionMissingDependencies");
        }
Exemplo n.º 3
0
        protected override void ProcessRecord()
        {
            Logger.LogVerbose("Entering Get-XrmSolutionMissingComponents");

            base.ProcessRecord();

            Logger.LogVerbose("Retrieving missing components for {0}", SolutionFilePath);

            SolutionComponentsManager manager = new SolutionComponentsManager(Logger, OrganizationService);

            MissingComponent[] components = manager.GetMissingComponentsOnTarget(SolutionFilePath);

            WriteObject(components);

            Logger.LogVerbose("Leaving Get-XrmSolutionMissingComponents");
        }