AWSSDK_DotNet.IntegrationTests.Tests.S3.DualstackTests.TestExplicitlyDefinedEndpoint C# (CSharp) Method

TestExplicitlyDefinedEndpoint() private method

private TestExplicitlyDefinedEndpoint ( ) : void
return void
        public void TestExplicitlyDefinedEndpoint()
        {
            string hostname = RegionEndpoint.APNortheast2.GetEndpointForService("sts", true).Hostname;
            Assert.AreEqual<string>("sts.dualstack.ap-northeast-2.amazonaws.com", hostname);

            hostname = RegionEndpoint.CNNorth1.GetEndpointForService("iam", true).Hostname;
            Assert.AreEqual<string>("iam.dualstack.cn-north-1.amazonaws.com.cn", hostname);
        }
    }