public RdpTests() { base.SetupTestsForManagement(); _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString()); grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName, RdpCredential = _rdpCred, RdpAccessExpiry = new DateTime(2015, 1, 1) }; revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName }; }
public RdpTests(Xunit.Abstractions.ITestOutputHelper output) { ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output)); base.SetupTestsForManagement(); _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString()); grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName, RdpCredential = _rdpCred, RdpAccessExpiry = new DateTime(2015, 1, 1) }; revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName }; }
public RdpTests(Xunit.Abstractions.ITestOutputHelper output) { ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output)); base.SetupTestsForManagement(); _rdpCred = new PSCredential("rdpuser", string.Format("Password1!").ConvertToSecureString()); grantcmdlet = new GrantAzureHDInsightRdpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName, RdpCredential = _rdpCred, RdpAccessExpiry = new DateTime(2015, 1, 1) }; revokecmdlet = new RevokeAzureHDInsightRdpServicesAccessCommand { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ClusterName = ClusterName, ResourceGroupName = ResourceGroupName }; }