public void Setup()
        {
            mockFactory             = new LeanKitFactoryMock();
            LeanKitFactory.Instance = mockFactory;

            mockHistory = new Mock <ILeanKitLanePointsHistory>(MockBehavior.Strict);
            mockFactory._laneHistory = mockHistory.Object;

            mockDayUpdateMonitor = new Mock <PresenterCommon.IDayUpdateMonitor>(MockBehavior.Strict);
        }
        public void Setup()
        {
            LeanKitHelper.lastId = 1;

            mockFactory             = new LeanKitFactoryMock();
            LeanKitFactory.Instance = mockFactory;

            mockApi          = new Mock <LeanKit.API.Client.Library.ILeanKitApi>(MockBehavior.Strict);
            mockFactory._api = mockApi.Object;
        }
Exemplo n.º 3
0
        public void Setup()
        {
            mockFactory             = new LeanKitFactoryMock();
            LeanKitFactory.Instance = mockFactory;

            mockTicker          = new Mock <ILeanKitTicker>(MockBehavior.Strict);
            mockFactory._ticker = mockTicker.Object;

            mockTimer          = new Mock <PresenterCommon.ITimer>(MockBehavior.Strict);
            mockFactory._timer = mockTimer.Object;

            actualMessage = null;
            wait          = new System.Threading.AutoResetEvent(false);
        }