public void SetUp()
 {
     _agentSettingsManagerMock = new Mock<IAgentSettingsManager>();
     _nugetPackageMock = new Mock<IPackage>();
     _nugetPackageFile = new PackageFileStub { Path = ConfigurationFiles.AgentConfigurationFile };
     _agentConfigManagerMock = new Mock<IAgentConfigurationManager>();
     _retrieveQueryMock = new Mock<IRetrievePackageQuery>();
     _downloader = new AgentConfigurationDownloader(_agentConfigManagerMock.Object, _retrieveQueryMock.Object, _agentSettingsManagerMock.Object);
 }
 public void SetUp()
 {
     _configurationDefaults = new Mock<IConfigurationDefaults>();
     _configurationDefaults.SetupGet(c => c.AgentConfigurationFile).Returns(Guid.NewGuid().ToString());
     _configurationDefaults.SetupGet(c => c.AgentConfigurationFileLocation).Returns(Environment.CurrentDirectory);
     _agentSettingsManagerMock = new Mock<IAgentSettingsManager>();
     _nugetPackageMock = new Mock<IPackage>();
     _nugetPackageFile = new PackageFileStub { Path = Environment.CurrentDirectory };
     _agentConfigManagerMock = new Mock<IAgentConfigurationManager>();
     _retrieveQueryMock = new Mock<IRetrievePackageQuery>();
     _downloader = new AgentConfigurationDownloader(_agentConfigManagerMock.Object, _retrieveQueryMock.Object, _agentSettingsManagerMock.Object, _logger.Object, _configurationDefaults.Object);
 }