public void Setup()
        {
            m_Bus = Substitute.For <ISelkieInMemoryBus>();
            m_Dispatcher = new TestImmediateDispatcher();
            m_ControlModel = Substitute.For <IControlModel>();
            m_Manager = Substitute.For <ICommandManager>();

            m_Model = CreateModel(m_Dispatcher);
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            m_Handler = Substitute.For <IMapViewModelMessageHandler>();

            m_Bus = Substitute.For <ISelkieInMemoryBus>();
            m_Dispatcher = new TestImmediateDispatcher();
            m_Handlers = new[]
                         {
                             m_Handler
                         };

            m_Sut = CreateModel(m_Dispatcher);
        }
        public void Setup()
        {
            m_Logger = Substitute.For <ISelkieLogger>();
            m_Bus = Substitute.For <ISelkieInMemoryBus>();
            m_Dispatcher = new TestImmediateDispatcher();
            m_Manager = Substitute.For <ICommandManager>();

            m_Model = new RacetrackSettingsViewModel(m_Logger,
                                                     m_Bus,
                                                     m_Dispatcher,
                                                     m_Manager,
                                                     Substitute.For <IRacetrackSettingsModel>());
        }
Ejemplo n.º 4
0
        public void Setup()
        {
            m_Bus = Substitute.For <ISelkieInMemoryBus>();
            m_Dispatcher = new TestImmediateDispatcher();
            m_CommandManager = Substitute.For <ICommandManager>();
            m_StatusModel = Substitute.For <IStatusModel>();
            m_ExceptionThrownModel = Substitute.For <IExceptionThrownModel>();

            m_Sut = new StatusViewModel(m_Bus,
                                        m_Dispatcher,
                                        m_CommandManager,
                                        m_ExceptionThrownModel,
                                        m_StatusModel);
        }
        public void Setup()
        {
            m_Logger = Substitute.For <ISelkieLogger>();
            m_Bus = Substitute.For <ISelkieInMemoryBus>();
            m_Dispatcher = new TestImmediateDispatcher();
            m_Manager = Substitute.For <ICommandManager>();

            m_Sut = new AntSettingsViewModel(m_Logger,
                                             m_Bus,
                                             m_Dispatcher,
                                             m_Manager,
                                             Substitute.For <IAntSettingsModel>());

            m_SelectedNode = Substitute.For <IAntSettingsNode>();
            m_Sut.SelectedNode = m_SelectedNode;
        }