public void ShouldThrowValidationException_WhenEmojiIsNull() { var command = new ApplyReactionRolesCommand { GuildId = 151, UserId = 450, ChannelId = 4540, MessageId = 500, Emoji = null }; FluentActions.Invoking(() => _fixture.SendAsync(command)).Should().ThrowAsync <ValidationException>(); }
public void ShouldThrowValidationException_WhenHasInvalidProperty(ulong guildId, ulong userId, ulong channelId, ulong messageId, ulong emojiId, string emojiName) { var command = new ApplyReactionRolesCommand { GuildId = guildId, UserId = userId, ChannelId = channelId, MessageId = messageId, Emoji = new Emoji { Id = emojiId, Name = emojiName } }; FluentActions.Invoking(() => _fixture.SendAsync(command)).Should().ThrowAsync <ValidationException>(); }