Exemplo n.º 1
0
        public void GetSecurityTokenWithUserName_FactoryAndRstConfiguredCorrectly()
        {
            // Arrange
            var client = new TestableWsTrustClient("fictive.adfs");

            // Act
            client.GetSecurityToken("https://fictiverpidentifier/", "doesnot", "matter");

            // Assert
            AssertUsernameFactory(
                client: client,
                expectedFactoryEndpoint: "https://fictive.adfs/adfs/services/trust/13/usernamemixed",
                expectedUsername: "******",
                expectedPassword: "******");
            AssertRst(
                client: client,
                expectedRstAppliesTo: "https://fictiverpidentifier/");
        }