示例#1
0
        public AllocationPoliciesTestsFixture()
        {
            ProjectId = _projectId;

            Assert.False(string.IsNullOrEmpty(ProjectId));

            PolicyId = _policyId + TestUtil.RandomName();
            string parent = $"projects/{ProjectId}/locations/global";

            PolicyName = $"{parent}/allocationPolicies/{PolicyId}";

            // Setup
            var snippet = new CreateAllocationPolicySamples();

            Assert.Contains($"Allocation Policy created for {PolicyName}.", snippet.CreateAllocationPolicy(ProjectId, PolicyId));
        }
示例#2
0
        public void TestCreateAllocationPolicy()
        {
            var snippet = new CreateAllocationPolicySamples();

            Assert.NotNull(fixture.PolicyName);
        }