protected override void Act() { var command = new AddApplicationBlockCommand(Container.Resolve<ConfigurationSourceModel>(), new AddApplicationBlockCommandAttribute("sectionName", typeof(LoggingSettings)), Container.Resolve<IUIServiceWpf>()); this.match = this.filter.Match(command); }
protected override void Arrange() { base.Arrange(); configurationModel = Container.Resolve<ConfigurationSourceModel>(); AddApplicationBlockCommandAttribute attribute = new AddApplicationBlockCommandAttribute("appSettings", typeof(AppSettingsSection)); addBlockCommand = Container.Resolve<AddApplicationBlockCommand>( new DependencyOverride<ConfigurationSourceModel>(configurationModel), new DependencyOverride<AddApplicationBlockCommandAttribute>(attribute)); executeChagnedListener = new CanExecuteChangedListener(); executeChagnedListener.Add(addBlockCommand); }
protected override void Arrange() { base.Arrange(); applicationModelMock = new Mock<IApplicationModel>(); Container.RegisterInstance<IApplicationModel>(applicationModelMock.Object); addApplicationBlockCommand = Container.Resolve<AddApplicationBlockCommand>( new DependencyOverride<AddApplicationBlockCommandAttribute>( new AddApplicationBlockCommandAttribute(LoggingSettings.SectionName, typeof(LoggingSettings)))); configurationSourceModel = Container.Resolve<ConfigurationSourceModel>(); }