@Test public void test_should_map_from_contract_to_domain() { final NonLoggedInUserUpdatePasswordRequest request = NonLoggedInUserUpdatePasswordRequest.builder() .newPassword("newPassword") .userName("userName") .otpReference("otpReference") .tenantId("tenant") .build(); final org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest domain = request.toDomain(); assertNotNull(domain); assertEquals("userName", domain.getUserName()); assertEquals("newPassword", domain.getNewPassword()); assertEquals("otpReference", domain.getOtpReference()); assertEquals("tenant", domain.getTenantId()); }
public org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain() { return org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest.builder().otpReference(otpReference) .userName(userName).newPassword(newPassword).type(type).tenantId(tenantId).build(); }
NonLoggedInUserUpdatePasswordRequest { public org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain() { return org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest.builder().otpReference(otpReference) .userName(userName).newPassword(newPassword).type(type).tenantId(tenantId).build(); } }
NonLoggedInUserUpdatePasswordRequest { public org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain() { return org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest.builder().otpReference(otpReference) .userName(userName).newPassword(newPassword).type(type).tenantId(tenantId).build(); }  }
NonLoggedInUserUpdatePasswordRequest { public org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain() { return org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest.builder().otpReference(otpReference) .userName(userName).newPassword(newPassword).type(type).tenantId(tenantId).build(); }  org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain(); }
NonLoggedInUserUpdatePasswordRequest { public org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain() { return org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest.builder().otpReference(otpReference) .userName(userName).newPassword(newPassword).type(type).tenantId(tenantId).build(); }  org.egov.user.domain.model.NonLoggedInUserUpdatePasswordRequest toDomain();  }