public void AdcsTemplateLogic_GetActiveDirectoryPublishedTemplate_ValidName_ReturnsObjectWithMatchingName() { string name = "ServerAuthentication-CngRsa"; AdcsTemplateLogic templateLogic = new AdcsTemplateLogic(null, activeDirectory); AdcsCertificateTemplate template = templateLogic.GetActiveDirectoryPublishedTemplate(name, metadata); Assert.AreEqual(name, template.Name); }
public void AdcsTemplateLogic_GetActiveDirectoryPublishedTemplate_ValidNameAndCipherEdsa_ReturnsObjectWithExpectedCipherAlgorithm() { string name = "ServerAuthentication-CngEcdsa"; CipherAlgorithm expectedCipher = CipherAlgorithm.ECDSA; AdcsTemplateLogic templateLogic = new AdcsTemplateLogic(null, activeDirectory); AdcsCertificateTemplate template = templateLogic.GetActiveDirectoryPublishedTemplate(name, metadata); Assert.AreEqual(expectedCipher, template.Cipher); }