public void GetNewCommandAggregatorCustomTest()
        {
            CommandAggregatorFactory.RegisterAggreagtorImplementation <FakeAggregator>();
            var customAggregator = CommandAggregatorFactory.GetNewCommandAggregator();

            CommandAggregatorFactory.UnregisterAggreagtorImplementation <FakeAggregator>();

            Assert.IsNotNull(customAggregator);
            Assert.IsTrue(customAggregator.GetType().Equals(typeof(FakeAggregator)));
        }
        public void GetNewCommandAggregatorCustomWithContainerTest()
        {
            ICommandContainer container = new CommandContainer(new RelayCommand(new Action <object>(o => { })));

            container.Settings.Add("A", true);

            CommandAggregatorFactory.RegisterAggreagtorImplementation <FakeAggregator>();
            var customAggregator = CommandAggregatorFactory.GetNewCommandAggregator(
                new List <KeyValuePair <string, ICommandContainer> >
            {
                new KeyValuePair <string, ICommandContainer>("x", container)
            });

            CommandAggregatorFactory.UnregisterAggreagtorImplementation <FakeAggregator>();

            Assert.IsNotNull(customAggregator);
            Assert.IsTrue(customAggregator.GetType().Equals(typeof(FakeAggregator)));
            Assert.IsNotNull(customAggregator.GetCommandContainer("x"));
        }
 public void Register()
 {
     CommandAggregatorFactory.RegisterAggreagtorImplementation <OwnAggregator>();
 }