Beispiel #1
0
        public void DeleteRoles_Alway_valid()
        {
            _roleRepository.Delete(Arg.Any <Guid>());

            // Execute
            _sut.DeleteRole(Guid.NewGuid());

            // Assert
            _roleRepository.Received(1).Delete(Arg.Any <Guid>());
        }
Beispiel #2
0
 public async Task Delete([FromRoute] string id)
 {
     await _securityService.DeleteRole(id);
 }