コード例 #1
0
        public void ConstructorWithCredentialsTest()
        {
            Mock <TokenCloudCredentials> mockCredentials = CreateMockCredentials();
            SubscriptionCloudCredentials creds           = mockCredentials.Object;

            var client = new DataFactoryManagementClient(creds);

            DataFactoryManagementClientTests.ValidateClientWithCredentials(client, creds, mockCredentials);
            Assert.NotNull(client.BaseUri);
            Assert.NotNull(client.InternalClient.BaseUri);
        }
コード例 #2
0
        public void DefaultContructorTest()
        {
            var client = new DataFactoryManagementClient();

            DataFactoryManagementClientTests.ValidateDefaultClientProperties(client);
        }