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); }
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; }
public void Update(VenueName venueName, Address address, Contact contact, VenueMap venueMap) { name = venueName; this.address = address; this.contact = contact; map = venueMap; version = version++; }
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; }
public Venue(Version version, VenueName name, Address address, VenueMap map, Contact contact) : this(new Id(), version, name, address, map, contact) { }