public async Task DeleteProfanityAsync_Should_Work() { var response = await profanityword.DeleteProfanityAsync(new ProfanityDTO { Language = Language.EN, ProfanityWord = new List <string> { "test" } }); response.Should().Be(true); }
public async Task <bool> RemoveProfanityAsync(ProfanityDTO profanity) { if (profanity == null) { throw new ArgumentNullException(nameof(profanity)); } var response = await _profanityDataService.DeleteProfanityAsync(profanity); return(response); }