public void AddTrackerGuard()
        {
            var guard    = new FutureDateTrackerGuard();
            var addGuard = new AddTrackerGuardAction(string.Empty, this.workTracker.Address, guard);

            this.permissionManager.ExecuteAction(addGuard);

            Assert.Contains(guard, this.workTracker.TrackGuards);
        }
        public void AddTrackerGuard_WhenDuplicate_RemainsSingle()
        {
            this.InitializeEventLogAndGuards();
            var guard    = new FutureDateTrackerGuard();
            var addGuard = new AddTrackerGuardAction(string.Empty, this.workTracker.Address, guard);

            this.permissionManager.ExecuteAction(addGuard);

            Assert.Equal(3, this.workTracker.TrackGuards.Count);
        }
Exemplo n.º 3
0
 public FutureDateTrackerGuardTest()
 {
     this.address      = this.addressFactory.Create();
     this.trackerGuard = new FutureDateTrackerGuard();
 }