public CloudServiceTests() { CloudService = new CloudService("test-" + Guid.NewGuid().ToString("N"), TestLocation, LocationType.Region) { Description = "Test Description" }; Debug.WriteLine("CloudServiceTests ctor - creating test service"); TestConstants.Subscription.CreateCloudServiceAsync (CloudService).Wait(); var cert = new X509Certificate2(@"..\..\CertKey.pfx", "1234", X509KeyStorageFlags.Exportable); var serviceCertificate = new ServiceCertificate(cert); CloudService.AddServiceCertificateAsync(serviceCertificate).Wait(); }
public Task AddServiceCertificateAsync(ServiceCertificate certificate) { return(certificate.AddAsync(this)); }