public AddVenueCommand(string venueName, string address, string mapURN, string contact) : base(Guid.NewGuid()) { Address = Address.Parse(address); Contact = Contact.Parse(contact); VenueMap = new VenueMap(new Uri(mapURN ?? "http://maps.google.co.uk")); VenueName = new VenueName(venueName); Version = new Version(1); }
public UpdateVenueCommand(Guid id, string venueName, string address, string mapURN, string contact, int version) { Id = new Id(id); Address = Address.Parse(address); Contact = Contact.Parse(contact); VenueMap = new VenueMap(new Uri(mapURN != null ? mapURN : "http://maps.google.co.uk")); VenueName = new VenueName(venueName); Version = new 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 VenueDocument(Id id, Version version, VenueName venueName, Address address, VenueMap venueMap, VenueContact venueContact) { Id = (Guid)id; Version = (int) version; VenueName = (string) venueName; Address = (string) address; VenueMap = (string) venueMap; VenueContact = (string) venueContact; }