private static void AddMute(IModCommandRepositoryLogic modCommandLogic, string mutedPhrase, TimeSpan firstDuration, IQueryCommandService <IUnitOfWork> unitOfWork)
        {
            modCommandLogic.AddMute(mutedPhrase, firstDuration);
            var autoPunishments = unitOfWork.Query(u => u.AutoPunishments.GetAllWithUser);
            var autoPunishment  = autoPunishments.Single();

            Assert.AreEqual(mutedPhrase, autoPunishment.Term);
            Assert.AreEqual(AutoPunishmentType.MutedString, autoPunishment.Type);
            Assert.AreEqual(firstDuration, autoPunishment.Duration);
        }
 public ModCommandFactory(
     IModCommandLogic modCommandLogic,
     IModCommandRepositoryLogic modCommandRepositoryLogic,
     IModCommandRegex modCommandRegex,
     IModCommandParser modCommandParser,
     IFactory <IReceived <Moderator, IMessage>, Nuke> nukeFactory)
 {
     _modCommandLogic           = modCommandLogic;
     _modCommandRepositoryLogic = modCommandRepositoryLogic;
     _modCommandRegex           = modCommandRegex;
     _modCommandParser          = modCommandParser;
     _nukeFactory = nukeFactory;
 }