Skip to content

Commit

Permalink
made some changes to InMemoryUser so it works for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CC-3636 committed Nov 22, 2022
1 parent cac7be0 commit b4f5e78
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/screens/InMemoryUser.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package screens;

import login_usecase.LoginGateway;
import user_register_usecase.UserRegSaveRequest;
import user_register_usecase.UserRegGateway;

import java.util.HashMap;
import java.util.Map;

public class InMemoryUser implements UserRegGateway {
public class InMemoryUser implements UserRegGateway, LoginGateway {

final private Map<String, UserRegSaveRequest> users = new HashMap<>();

Expand All @@ -20,6 +21,16 @@ public boolean existsByName(String identifier) {
return users.containsKey(identifier);
}

@Override
public String passOf(String name) {
return null;
}

@Override
public Map<String, UserRegSaveRequest> getAccounts() {
return null;
}

/**
* @param requestModel the data to save
*/
Expand Down

0 comments on commit b4f5e78

Please sign in to comment.