コード例 #1
0
ファイル: Room.cs プロジェクト: SamuelDebruyn/AD5-Cirqus-demo
 public void UpdateInfo(bool tv, bool seperateToilet, Bathroom bathroom, Dimensions dimensions)
 {
     HasTV = tv;
     SeperateToilet = seperateToilet;
     Bathroom = bathroom;
     Dimensions = dimensions;
 }
コード例 #2
0
 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));
 }