Skip to content

Commit c29211c

Browse files
committed
minor changes, now verificationMethodFactory implements an interface. Since the factory outputs a presenter object, it must be passed as an argument for UserExistsInteractor - rather than created in this class
1 parent e6e3cd0 commit c29211c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package use_cases.user_registration_use_cases;
2+
3+
public interface createMailMan {
4+
ISendVerificationCode getVerificationMethod(String type);
5+
}

src/main/java/use_cases/user_registration_use_cases/verificationMethodFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package use_cases.user_registration_use_cases;
22

3-
public class verificationMethodFactory {
3+
public class verificationMethodFactory implements createMailMan {
44
public ISendVerificationCode getVerificationMethod(String type){
55
return new EmailDelivery();
66
}

0 commit comments

Comments
 (0)