public void CanCreateClusterConfigWithDataLakeStoreParameters() { var newclusteridentitycmdlet = new NewAzureHDInsightClusterConfigCommand() { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ObjectId = ObjectId, CertificateFilePath = Certificate, AadTenantId = AadTenantId, CertificatePassword = CertificatePassword }; newclusteridentitycmdlet.ExecuteCmdlet(); commandRuntimeMock.Verify( f => f.WriteObject( It.Is<AzureHDInsightConfig>( c => c.AADTenantId == AadTenantId && c.CertificatePassword == CertificatePassword && c.ObjectId == ObjectId && c.CertificateFilePath == Certificate )), Times.Once); }
public void CanCreateDataLakeClusterWithCertificationFileContents() { var clusterIdentityCmdlet = new NewAzureHDInsightClusterConfigCommand() { CommandRuntime = commandRuntimeMock.Object, HDInsightManagementClient = hdinsightManagementMock.Object, ObjectId = ObjectId, CertificateFileContents = CertificateFileContents, AadTenantId = AadTenantId, CertificatePassword = CertificatePassword }; clusterIdentityCmdlet.ExecuteCmdlet(); commandRuntimeMock.Verify( f => f.WriteObject( It.Is<AzureHDInsightConfig>( c => c.AADTenantId == AadTenantId && c.CertificatePassword == CertificatePassword && c.ObjectId == ObjectId && c.CertificateFileContents == CertificateFileContents )), Times.Once); }