Esempio n. 1
0
 public void UnAssign(DateTime sessionStart, int duration)
 {
     if (_assignedSession.PeriodExists(sessionStart, duration))
     {
         RaiseEvent(new LocationUnassigned(AggregateId, GetNextSequence(), sessionStart, duration));
     }
 }
        public void test_assign_and_unassign_with_complete_date()
        {
            var start           = DateTime.Now;
            var assignedSession = new AssignedSession();

            assignedSession.Add(start, 10);
            assignedSession.PeriodExists(start.AddHours(1), 10).Should().BeTrue();
        }