Пример #1
0
        public void DeleteUser_EveryTime_valid()
        {
            // mock
            var userModel = new User()
            {
                Id = Guid.NewGuid(),
            };

            _userRepository.Delete(Arg.Any <Guid>());

            // Execute
            _sut.DeleteUser(userModel.Id);

            // Assert
            _userRepository.Received(1).Delete(Arg.Any <Guid>());
        }
Пример #2
0
 public async Task Delete([FromRoute] string id)
 {
     await _securityService.DeleteUser(id);
 }