Ejemplo n.º 1
0
        public void PrepareTest()
        {
            var actionInfoRegistry = new CommandRegistry();

            actionInfoRegistry.Init(new MockPluginLoader());
            _actionInfoDiscover = new CommandRepository(actionInfoRegistry);
        }
Ejemplo n.º 2
0
        public void Init_WithProvider_Should_Ok()
        {
            var actionInfoRegistry = new CommandRegistry();

            actionInfoRegistry.Init(new MockPluginLoader());
            actionInfoRegistry.Commands.LogJson();
            actionInfoRegistry.Commands.Count.ShouldEqual(6);
        }
Ejemplo n.º 3
0
        public void Init_Null_Should_Throws()
        {
            var actionInfoRegistry = new CommandRegistry();

            AssertHelper.ShouldThrows <ArgumentNullException>(() =>
            {
                actionInfoRegistry.Init(null);
            });
        }