예제 #1
0
        public void Setup()
        {
            //RhinoMocks.Logger = new TextWriterExpectationLogger(Console.Out);
            mocks = new MockRepository();
            registry = mocks.DynamicMock<IRegistry>();
            fileSystem = mocks.DynamicMock<IFilesSystem>();

            task = new AddTnsName(registry, fileSystem);
            task.BuildEngine = new MockBuild();
        }
예제 #2
0
        public void Setup()
        {
            //RhinoMocks.Logger = new TextWriterExpectationLogger(Console.Out);
            mocks      = new MockRepository();
            registry   = mocks.DynamicMock <IRegistry>();
            fileSystem = mocks.DynamicMock <IFilesSystem>();

            task             = new AddTnsName(registry, fileSystem);
            task.BuildEngine = new MockBuild();
        }
예제 #3
0
 /// <summary>
 /// Creates a new instance of the AddTnsName task using dependency injection.
 /// </summary>
 /// <param name="registry">A service that provides access to the Windows registry.</param>
 /// <param name="fileSystem">A service that provides access to the file system.</param>
 public AddTnsName(IRegistry registry, IFilesSystem fileSystem)
 {
     this.registry   = registry;
     this.fileSystem = fileSystem;
 }
예제 #4
0
 /// <summary>
 /// Creates a new instance of the AddTnsName task using dependency injection.
 /// </summary>
 /// <param name="registry">A service that provides access to the Windows registry.</param>
 /// <param name="fileSystem">A service that provides access to the file system.</param>
 public AddTnsName(IRegistry registry, IFilesSystem fileSystem)
 {
     this.registry = registry;
     this.fileSystem = fileSystem;
 }