예제 #1
0
        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);
        }
예제 #2
0
 public void Setup()
 {
     this.agentManagerServiceMock = new Mock <IAgentManagerService>();
     this.preInstallService       = new PreInstallService(this.agentManagerServiceMock.Object);
 }