Пример #1
0
 private ReviewBuilder(ReviewBuilder other)
 {
     _reviewPeriod   = TimeSpan.FromDays(7.0);
     _horizonOfFocus = HorizonOfFocus.AreaOfFocus;
     _horizonOfFocus = other._horizonOfFocus;
     _lastReviewed   = other._lastReviewed;
     _reviewPeriod   = other._reviewPeriod;
 }
Пример #2
0
        public void HorizonOfFocus_WhenSet_RaisesPropertyChanged()
        {
            const HorizonOfFocus newHorizon = HorizonOfFocus.Project;

            var test = new Review();

            test.AssertThatChangeNotificationIsRaisedBy(x => x.HorizonOfFocus).
            When(() => test.HorizonOfFocus = newHorizon);
            Assert.Equal(newHorizon, test.HorizonOfFocus);
        }
Пример #3
0
 public ReviewBuilder()
 {
     _reviewPeriod   = TimeSpan.FromDays(7.0);
     _horizonOfFocus = HorizonOfFocus.AreaOfFocus;
 }