Exemple #1
0
        public UsingCommand()
        {
            PrimaryChannelName = Guid.NewGuid().ToString();

            MockedBot = new Mock <IBot>().SetupAllProperties();

            var moderatorOptions = new ClientOptions();
            var regularOptions   = new ClientOptions();

            MockedWriter = new();

            MockedContextFactory = new();

            MockedContext = new Mock <IApplicationContext>();

            MockedContextFactory.Setup(x => x.GetContext()).Returns(MockedContext.Object);

            MockedTwitchClient = new Mock <ITwitchClient>();

            MockedTwitchClientManager = new Mock <ITwitchClientManager>();

            MockedTwitchClientManager.Setup(x => x.PrimaryChannelName).Returns(PrimaryChannelName);

            MockedTwitchClientManager.Setup(x => x.Client).Returns(MockedTwitchClient.Object);

            MockedRepeater = new Mock <IRepeater>().SetupAllProperties();

            MockedCommandRepository = new Mock <ICommandRepository>().SetupAllProperties();
        }
        protected UsingEmoteManager()
        {
            MockedContextFactory = new();
            MockedContext        = new();
            MockedRandom         = new();

            Sut = new(MockedContextFactory.Object, MockedRandom.Object);

            MockedContextFactory
            .Setup(x => x.GetContext())
            .Returns(MockedContext.Object);
        }