public void SetModChannel() { var mock = new Mock <IGuildData>(MockBehavior.Strict); mock.Setup(x => x.SetModChannel(1, 2)); var guildService = new GuildService(mock.Object); guildService.SetModChannel(1, 2); mock.Verify(x => x.SetModChannel(1, 2), Times.Exactly(1)); }
public ActionResult SetModChannel(ulong guildId, ulong modChannelId) { _guildService.SetModChannel(guildId, modChannelId); return(Ok($"mod channel set to {modChannelId}")); }