Exemplo n.º 1
0
		private Customer(Guid id, CustomerName customerName, Address address, PhoneNumber phoneNumber)
		{
			RaiseEvent(new Created(id, customerName.Name, address.Street, address.StreetNumber, address.PostalCode,
			                                    address.City, phoneNumber.Number));
		}
Exemplo n.º 2
0
		public static Customer CreateNew(Guid id, CustomerName customerName, Address address, PhoneNumber phoneNumber)
		{
			return new Customer(id, customerName, address, phoneNumber);
		}