示例#1
0
 public void UpdateInfo(bool tv, bool seperateToilet, Bathroom bathroom, Dimensions dimensions)
 {
     HasTV = tv;
     SeperateToilet = seperateToilet;
     Bathroom = bathroom;
     Dimensions = dimensions;
 }
 public Guid AddRoom(bool tv, bool seperateToilet, Bathroom bathroom, Dimensions dimensions, params Bed[] beds)
 {
     var command = new AddRoomCommand(tv, seperateToilet, bathroom, dimensions, beds);
     var result = _processor.ProcessCommand(command);
     if (result.EventsWereEmitted)
     {
         return command.CreatedGuid;
     }
     throw new CreationFailedException(command.CreatedGuid, typeof (IRoom));
 }