public void Setup() { var apiClientHelper = new ApiClientHelper(); this.agentManager = apiClientHelper.GetKeplerServiceReference <IAgentManager>().Value; var connectionFactory = TestUtilities.GetIntegrationConnectionFactory(); var agentRepository = new AgentRepository(connectionFactory); var logger = TestUtilities.GetMockLogger().Object; var agentManagerService = new AgentManagerService(this.agentManager, agentRepository, logger); this.preInstallService = new PreInstallService(agentManagerService); }
public void Setup() { this.agentManagerServiceMock = new Mock <IAgentManagerService>(); this.preInstallService = new PreInstallService(this.agentManagerServiceMock.Object); }