Exemple #1
0
 public PublishTask()
 {
     _fileSystem = new FileSystem();
     _configurationFactory = new ConfigurationFactory(_fileSystem, new TransformFactory(), new TargetPathFactory());
     _fileCopyService = new FileCopyService(_fileSystem);
     _xmlTransformService = new XmlTransformService(_fileSystem);
     _publisherSettingsFactory = new PublisherSettingsFactory();
 }
Exemple #2
0
 public Publisher(IPublisherSettings publisherSettings, IFileCopyService fileCopyService, 
     IFileSystem fileSystem, IXmlTransformService xmlTransformService)
 {
     _publisherSettings = publisherSettings;
     _fileCopyService = fileCopyService;
     _fileSystem = fileSystem;
     _xmlTransformService = xmlTransformService;
 }
 public XmlTransformServiceFacts()
 {
     _fileSystem = new MockFileSystem();
     _xmlTransformService = new XmlTransformService(_fileSystem, null);
 }