示例#1
0
        public ILocation create_location_using(IUnitedNationsLocationCode the_united_nations_location_code, ILocationName the_location_name)
        {
            if (the_united_nations_location_code == null)
                throw new ArgumentNullException("the_united_nations_location_code", "Invariant Violated: a valid United Nations location code is required in order to construct a location.");

            if (the_location_name == null)
                throw new ArgumentNullException("the_location_name", "Invariant Violated: a valid location name is required in order to construct a location.");

            return new Location(the_united_nations_location_code, the_location_name);
        }
 public DBLocationNameRec(ILocationName source)
 {
     GUID         = source.GUID;
     LocationGUID = source.LocationGUID;
     Name         = source.Name;
     Type         = source.Type;
     Description  = source.Description;
     ActualDates  = source.ActualDates;
     Language     = source.Language;
 }
示例#3
0
文件: Location.cs 项目: 3j/dddsample
 internal Location(IUnitedNationsLocationCode the_united_nations_location_code, ILocationName the_injected_location_name)
 {
     underlying_united_nations_location_code = the_united_nations_location_code;
     underlying_location_name = the_injected_location_name;
 }