Exemple #1
0
    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));
    }
Exemple #2
0
 public ActionResult SetModChannel(ulong guildId, ulong modChannelId)
 {
     _guildService.SetModChannel(guildId, modChannelId);
     return(Ok($"mod channel set to {modChannelId}"));
 }