예제 #1
0
        public void Initialize(IProgressStepFactory stepFactory, IEnumerable <IProgressStepDefinition> stepsDefinition)
        {
            if (stepFactory == null)
            {
                throw new ArgumentNullException(nameof(stepFactory));
            }

            if (stepsDefinition == null)
            {
                throw new ArgumentNullException(nameof(stepsDefinition));
            }

            if (this.stepFactory != null || this.progressStepOperations != null)
            {
                throw new InvalidOperationException(ProgressResources.AlreadyInitializedException);
            }

            this.notificationManager    = new ErrorNotificationManager();
            this.stepFactory            = stepFactory;
            this.progressStepOperations = this.CreateStepOperations(stepsDefinition);
        }
 public void TestCleanup()
 {
     this.serviceProvider = null;
     this.testSubject     = null;
 }
 public void TestInitialize()
 {
     this.serviceProvider = new ConfigurableServiceProvider();
     this.testSubject     = new ErrorNotificationManager();
 }