public void OnUnsubscribeAsync_ReturnsCompletedTask()
        {
            var policy = new ControlRequiredSignerPolicy();

            var task = policy.OnSubscribeAsync(context: null);

            Assert.Same(Task.CompletedTask, task);
        }
        public void Constructor_InitializesProperties()
        {
            var policy = new ControlRequiredSignerPolicy();

            Assert.Equal(nameof(ControlRequiredSignerPolicy), policy.Name);
            Assert.Equal(nameof(ControlRequiredSignerPolicy), policy.SubscriptionName);
            Assert.Equal(SecurityPolicyAction.ControlRequiredSigner, policy.Action);
            Assert.Single(policy.Policies);
            Assert.Equal(nameof(ControlRequiredSignerPolicy), policy.Policies.Single().Name);
            Assert.Equal(nameof(ControlRequiredSignerPolicy), policy.Policies.Single().Subscription);
        }
        public void Evaluate_Throws()
        {
            var policy = new ControlRequiredSignerPolicy();

            Assert.Throws <NotImplementedException>(() => policy.Evaluate(context: null));
        }