public void RemoveAllStrikesFromUser() { var mock = new Mock <IStrikeData>(MockBehavior.Strict); mock.Setup(x => x.RemoveAllStrikesFromUser(1, 2)); var guildService = new StrikeService(mock.Object); guildService.RemoveAllStrikesFromUser(1, 2); mock.Verify(x => x.RemoveAllStrikesFromUser(1, 2), Times.Exactly(1)); }
public ActionResult RemoveAllStrikes(ulong guildId, ulong userId) { _strikeService.RemoveAllStrikesFromUser(guildId, userId); return(Ok($"strikes removed from user {userId}")); }