public void AddResourceInstanceReservation(IResourceInstanceReservation resourceInstanceReservation)
        {
            if (resourceInstanceReservation.ResourceInstanceID != ResourceInstanceID)
                throw new Exception(string.Format("Cannot add resource reservation because the resourceInstanceID for this schedule {0} does not match that for what you are trying to add {1}", ResourceInstanceID, resourceInstanceReservation.ResourceInstanceID));

            if (resourceInstanceReservation.Resource.UID != Resource.UID)
                throw new Exception(string.Format("Cannot add resource reservation because the resourceType for this schedule {0} does not match that for what you are trying to add {1}", Resource.Name, resourceInstanceReservation.Resource.Name));

            (Reservations as List<IResourceInstanceReservation>).Add(resourceInstanceReservation);
        }
        public void AddResourceInstanceReservation(IResourceInstanceReservation resourceInstanceReservation)
        {
            if (resourceInstanceReservation.ResourceInstanceID != ResourceInstanceID)
            {
                throw new Exception(string.Format("Cannot add resource reservation because the resourceInstanceID for this schedule {0} does not match that for what you are trying to add {1}", ResourceInstanceID, resourceInstanceReservation.ResourceInstanceID));
            }

            if (resourceInstanceReservation.Resource.UID != Resource.UID)
            {
                throw new Exception(string.Format("Cannot add resource reservation because the resourceType for this schedule {0} does not match that for what you are trying to add {1}", Resource.Name, resourceInstanceReservation.Resource.Name));
            }

            (Reservations as List <IResourceInstanceReservation>).Add(resourceInstanceReservation);
        }