コード例 #1
0
        public void Adds_sub_provisioner()
        {
            var parent = new HarshProvisioner();
            var child  = new HarshProvisioner();

            HarshProvisionerCmdlet.AddChild(parent, child);

            Assert.Contains(child, parent.Children);
        }
コード例 #2
0
        public async Task Adds_default_context_tag()
        {
            var parent = new HarshProvisioner()
            {
                Children = { new ExpectsTag() }
            };

            var tag = new Tag()
            {
                Value = 42
            };

            HarshProvisionerCmdlet.AddChild(parent, tag);

            await parent.ProvisionAsync(Context);
        }