Ejemplo n.º 1
0
        public void ModifyRequest_DefaultOptions()
        {
            var request = new SetIamPolicyRequest(null, null, "bucket");
            var options = new SetBucketIamPolicyOptions();

            options.ModifyRequest(request);
            Assert.Null(request.UserProject);
        }
Ejemplo n.º 2
0
        public void ModifyRequest_AllOptions()
        {
            var request = new SetIamPolicyRequest(null, null, "bucket");
            var options = new SetBucketIamPolicyOptions
            {
                UserProject = "proj"
            };

            options.ModifyRequest(request);
            Assert.Equal("proj", request.UserProject);
        }