예제 #1
0
 private Address(DoorNumber doorNumber, Floor roomFloor, Building building)
 {
     DoorNumber = doorNumber;
     Building   = building;
     Floor      = roomFloor;
 }
예제 #2
0
 public static Address CreateFor(DoorNumber doorNumber, Floor roomFloor, Building buildingName)
 {
     return(new Address(doorNumber, roomFloor, buildingName));
 }