public Class1() { IPackageLocator packageLocator = new AzurePackageLocator(); IAzurePackageSerializer packageSerializer = new AzurePackageSerializer(); _azureRepo = new AzureServerPackageRepository(packageLocator, packageSerializer); }
public AzureServiceResolver(IServiceResolver serviceResolver) { _serviceResolver = serviceResolver; var azureServerPackageRepository = new AzureServerPackageRepository(new AzurePackageLocator(), new AzurePackageSerializer()); _serverPackageRepository = azureServerPackageRepository; _packageService = new AzurePackageService(azureServerPackageRepository, new PackageAuthenticationService()); }
/// <summary> /// Initializes a new instance of the <see cref="AzurePackageService"/> class. /// </summary> /// <param name="repository"> /// Repository of packages /// </param> /// <param name="authenticationService"> /// Authentication service /// </param> public AzurePackageService(AzureServerPackageRepository repository, IPackageAuthenticationService authenticationService) { this.repository = repository; this.packageService = new PackageService(repository, authenticationService); }
public AzurePackageService(AzureServerPackageRepository repository, IPackageAuthenticationService authenticationService) : base(repository, authenticationService) { _azureRepository = repository; }