public void SetUp() { threadingPolicy = new SingleThreadingPolicy(); transactionFactory = new TransactionFactory(threadingPolicy); layer = MockRepository.GenerateMock<ILayer>(); serverManager = MockRepository.GenerateMock<IServerManager>(); serverManagerFactory = MockRepository.GenerateMock<IServerManagerFactory>(); operationFactory = new OperationFactory(layer, serverManagerFactory); sut = new Deployer(transactionFactory, operationFactory); project = new Project { Name = "Search.API", Source = @"\\ystage01.ywebfarm.lcl\e$\ServiceArtifacts\Yoox.API\Search.API\1.1_new", Path = @"Test\Yoox.API\Search.API\1.0", Application = "Search.API", Site = "Yoox.API", Servers = new[] { @"\\serverA\", @"\\serverB\" }, }; }
public OperationFactory(ILayer layer, IServerManagerFactory serverManagerFactory) { this.layer = layer; this.serverManagerFactory = serverManagerFactory; }