Incorporated review comments from the editor.
This commit is contained in:
@@ -14,7 +14,7 @@ public class UserAggregate {
|
||||
}
|
||||
|
||||
public User handleCreateUserCommand(CreateUserCommand command) {
|
||||
User user = new User(command.getUserId(), command.getFiratName(), command.getLastName());
|
||||
User user = new User(command.getUserId(), command.getFirstName(), command.getLastName());
|
||||
writeRepository.addUser(user.getUserid(), user);
|
||||
return user;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Data;
|
||||
public class CreateUserCommand {
|
||||
|
||||
private String userId;
|
||||
private String firatName;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class UserAggregate {
|
||||
}
|
||||
|
||||
public List<Event> handleCreateUserCommand(CreateUserCommand command) {
|
||||
UserCreatedEvent event = new UserCreatedEvent(command.getUserId(), command.getFiratName(), command.getLastName());
|
||||
UserCreatedEvent event = new UserCreatedEvent(command.getUserId(), command.getFirstName(), command.getLastName());
|
||||
writeRepository.addEvent(command.getUserId(), event);
|
||||
return Arrays.asList(event);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<module>design-patterns-functional</module>
|
||||
<module>design-patterns-structural</module>
|
||||
<module>dip</module>
|
||||
<module>cqrs-es</module>
|
||||
<module>cqrs-es</module>
|
||||
<module>front-controller</module>
|
||||
<module>intercepting-filter</module>
|
||||
<module>solid</module>
|
||||
|
||||
Reference in New Issue
Block a user