Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Commit a57ab67

Browse files
committed
Use cases is the proper name for services.
1 parent 2fe5c89 commit a57ab67

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

bookshelf/implemented.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
django = Package("django")
66

7-
services = Package("bookshelf.services")
7+
usecases = Package("bookshelf.usecases")
88
repositories = Package("bookshelf.repositories")
99
functions = Package("bookshelf.functions")
1010

1111

1212
class BuySubscription(Injector):
1313

14-
buy_subscription = services.BuySubscription.buy
14+
buy_subscription = usecases.BuySubscription.buy
1515
load_category = repositories.load_category
1616
load_price = repositories.load_price
1717
load_profile = repositories.load_profile
@@ -25,7 +25,7 @@ class BuySubscription(Injector):
2525

2626
class PutMoneyIntoAccount(Injector):
2727

28-
put = services.PutMoneyIntoAccount.put
28+
put = usecases.PutMoneyIntoAccount.put
2929
load_profile = repositories.load_profile
3030
add_balance = repositories.add_balance
3131
send_notification = functions.SendNotification.do
@@ -35,7 +35,7 @@ class PutMoneyIntoAccount(Injector):
3535

3636
class SignUp(Injector):
3737

38-
register_user = services.SignUp.register_user
38+
register_user = usecases.SignUp.register_user
3939
validate_password = functions.validate_password
4040
create_user = repositories.create_user
4141
save_password = repositories.save_password
File renamed without changes.

0 commit comments

Comments
 (0)