コード例 #1
0
        public async Task When_Passing_Empty_Parameter_Then_Exception_Is_Thrown()
        {
            // ARRANGE
            IntializeFakeObjects();

            // ACT & ASSERT
            await Assert.ThrowsAsync <ArgumentNullException>(() => _deleteAuthorizationPolicyAction.Execute(null));
        }
コード例 #2
0
 public Task <bool> DeletePolicy(string policyId)
 {
     return(_deleteAuthorizationPolicyAction.Execute(policyId));
 }