Exemplo n.º 1
0
        public IHandlingActivity create_handling_activity_using(ILocation the_location, IHandlingEventType the_handling_event_type)
        {
            if (the_location == null)
                throw new ArgumentNullException("the_location", "Invariant Violated: a valid location is required in order to construct a handling activity.");

            if (the_handling_event_type == null)
                throw new ArgumentNullException("the_handling_event_type", "Invariant Violated: a valid handling event type is required in order to construct a handling activity.");

            return new HandlingActivity(the_location, the_handling_event_type);
        }
Exemplo n.º 2
0
 public bool has_the_same_value_as(IHandlingEventType the_other_value_object)
 {
     return underlying_display_name.Equals(the_other_value_object.display_name());
 }