public IMemento CreateMemento() { var memento = new LocationMemento( Id, Version, locationName.Name, address.StreetNumber, address.Street, address.City, address.PostalCode, map.Map.OriginalString, locationContact.ContactName.Name, locationContact.EmailAddress.Email, locationContact.PhoneNumber.Number); return(memento); }
protected override void Because() { locationMemento = (LocationMemento)location.CreateMemento(); }