public void AddPermission_ThrowException_If_CommandIsNUll()
 {
     Assert.ThrowsAsync <ArgumentNullException>(async() =>
                                                await authorizationAppService.AddPermission(null, CancellationToken.None));
 }
Esempio n. 2
0
        public async Task <IActionResult> Add(AddPermissionCommand command, CancellationToken cancellationToken = default)
        {
            var permissionId = await authorizationAppService.AddPermission(command, cancellationToken);

            return(Ok(permissionId));
        }