示例#1
0
 public override void Load(VenueDocument document)
 {
     address = Address.Parse(document.Address);
     contact = Contact.Parse(document.VenueContact);
     map     = new VenueMap(new Uri(document.VenueMap));
     name    = new VenueName(document.VenueName);
 }
示例#2
0
 public Venue(Id id, Version version, VenueName name, Address address, VenueMap map, Contact contact) : base(id, version)
 {
     this.address = address;
     this.contact = contact;
     this.map     = map;
     this.name    = name;
 }
示例#3
0
        public void Update(VenueName venueName, Address address, Contact contact, VenueMap venueMap)
        {
            name         = venueName;
            this.address = address;
            this.contact = contact;
            map          = venueMap;

            version = version++;
        }
示例#4
0
 public VenueDocument(Id id, Version version, VenueName venueName, Address address, VenueMap venueMap, Contact contact)
 {
     Id           = id;
     Version      = version;
     VenueName    = venueName;
     Address      = address;
     VenueMap     = venueMap;
     VenueContact = contact;
 }
示例#5
0
 public Venue(Version version, VenueName name, Address address, VenueMap map, Contact contact)
     : this(new Id(), version, name, address, map, contact)
 {
 }