private IWuApiController GetNewController()
        {
            IWuApiController controller = ControllerFactory.GetController();

            controller.AutoSelectUpdates = ConfigProvider.AutoSelectUpdates;
            controller.AutoAcceptEulas   = ConfigProvider.AutoAcceptEulas;
            return(controller);
        }
        private WuApiControllerFactory GetFactory(IWuApiController controller = null)
        {
            controller = controller ?? MoqFactory.Create <IWuApiController>(MockBehavior.Loose).Object;
            var mock = MoqFactory.Create <WuApiControllerFactory>();

            mock.Setup(f => f.GetController()).Returns(controller);
            return(mock.Object);
        }