Ejemplo n.º 1
0
        public void Setup()
        {
            m_Provider = new TestSourceControlProvider();
            m_Model    = new HistoryModel(m_Provider);
            m_Model.OnStart();

            m_BusyStatusUpdatedCount        = 0;
            m_EntryCountUpdatedCount        = 0;
            m_HistoryListReceivedCount      = 0;
            m_HistoryListUpdatedCount       = 0;
            m_SelectedRevisionReceivedCount = 0;

            m_Model.BusyStatusUpdated        += _ => m_BusyStatusUpdatedCount++;
            m_Model.EntryCountUpdated        += _ => m_EntryCountUpdatedCount++;
            m_Model.HistoryListReceived      += _ => m_HistoryListReceivedCount++;
            m_Model.HistoryListUpdated       += () => m_HistoryListUpdatedCount++;
            m_Model.SelectedRevisionReceived += _ => m_SelectedRevisionReceivedCount++;
        }