Skip to content

Commit e78a89c

Browse files
committed
Test
1 parent 20374a7 commit e78a89c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

1.zenuml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@EC2 BookLibService
2+
BookLibService.Borrow(id) {
3+
User = Session.GetUser()
4+
if(User.isActive) {
5+
try {
6+
BookRepository.Update(id, onLoan, User)
7+
receipt = new Receipt(id, dueDate)
8+
} catch (BookNotFoundException) {
9+
ErrorService.onException(BookNotFoundException)
10+
} finally {
11+
Connection.close()
12+
}
13+
}
14+
return receipt
15+
}

0 commit comments

Comments
 (0)