Beispiel #1
0
        public void RefreshConfig()
        {
            using (MockRepository.Ordered()) {
                InitEffortExpectations(TrackingLevel.Off, TrackingLevel.On);

                Expect.Call(connectorMock.LoadV1Configuration()).Return(configuration);
                Expect.Call(configuration.EffortTracking).Return(false);
                Expect.Call(configuration.StoryTrackingLevel).Return(TrackingLevel.On);
                Expect.Call(configuration.DefectTrackingLevel).Return(TrackingLevel.Off);
            }

            MockRepository.ReplayAll();
            var effortTracking = new EffortTracking(connectorMock);

            effortTracking.Init();
            effortTracking.Refresh();
            MockRepository.VerifyAll();

            Assert.IsFalse(effortTracking.TrackEffort);
            Assert.AreEqual(EffortTrackingLevel.SecondaryWorkitem, effortTracking.DefectTrackingLevel);
            Assert.AreEqual(EffortTrackingLevel.PrimaryWorkitem, effortTracking.StoryTrackingLevel);
        }
Beispiel #2
0
 public void Refresh()
 {
     v1Configuration = v1Connector.LoadV1Configuration();
     Init();
 }