Example #1
0
        public void ConfigureTest()
        {
            var y = new WorkItemMigrationProcessorOptions
            {
                Enabled = true
            };
            var x = Services.GetRequiredService <WorkItemTrackingProcessor>();

            x.Configure(y);
            Assert.IsNotNull(x);
        }
        public void ConfigureTest()
        {
            var y = new WorkItemMigrationProcessorOptions
            {
                Enabled = true
            };
            var x = new WorkItemMigrationProcessor(null, null, null);

            x.Configure(y);

            Assert.IsNotNull(x);
        }
        public void RunTest()
        {
            var y = new WorkItemMigrationProcessorOptions
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false
            };
            var x = Services.GetRequiredService <WorkItemMigrationProcessor>();

            x.Configure(y);
            x.Execute();
            Assert.AreEqual(ProcessingStatus.Complete, x.Status);
        }
Example #4
0
        private static WorkItemMigrationProcessorOptions GetConfigurationTfsToTfsNoEnrichers()
        {
            // Tfs To Tfs
            var migrationConfig = new WorkItemMigrationProcessorOptions()
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false,
                Endpoints                = new List <IEndpointOptions>()
                {
                    { GetTfsWorkItemEndPointOptions(EndpointDirection.Source, "migrationSource1") },
                    { GetTfsWorkItemEndPointOptions(EndpointDirection.Target, "migrationTarget1") }
                }
            };

            return(migrationConfig);
        }
Example #5
0
        public void RunTest()
        {
            var y = new WorkItemMigrationProcessorOptions
            {
                Enabled                  = true,
                CollapseRevisions        = false,
                ReplayRevisions          = true,
                WorkItemCreateRetryLimit = 5,
                PrefixProjectToNodes     = false,
                Endpoints                = new List <IEndpointOptions> {
                    new InMemoryWorkItemEndpointOptions {
                        Direction = EndpointDirection.Source
                    },
                    new InMemoryWorkItemEndpointOptions {
                        Direction = EndpointDirection.Target
                    }
                }
            };
            var x = Services.GetRequiredService <WorkItemTrackingProcessor>();

            x.Configure(y);
            x.Execute();
            Assert.AreEqual(ProcessingStatus.Complete, x.Status);
        }