Bladeren bron

In certificates, registration Authority, volume, number added to bootstrap

Andrew Grant 6 maanden geleden
bovenliggende
commit
385bf37f4b

+ 3 - 0
src/main/java/scot/carricksoftware/grants/bootstrap/DataLoadCertificates.java

@@ -56,6 +56,9 @@ public class DataLoadCertificates {
 
         Organisation organisation = organisationService.findById(1L);
         birthCertificateCommand.setCertificateSource(organisation);
+        birthCertificateCommand.setRegistrationAuthority(organisation);
+        birthCertificateCommand.setNumber("01");
+        birthCertificateCommand.setVolume("1953");
 
         birthCertificateService.saveBirthCertificateCommand(birthCertificateCommand);
 

+ 3 - 0
src/test/java/scot/carricksoftware/grants/bootstrap/DataLoadCertificatesTest.java

@@ -65,6 +65,9 @@ public class DataLoadCertificatesTest {
         assertEquals("999", captor.getValue().getCertificateNumber());
         assertEquals("25/01/1953", captor.getValue().getCertificateDate());
         assertEquals(CertificateType.EXTRACT, captor.getValue().getCertificateType());
+        assertEquals(organisation, captor.getValue().getRegistrationAuthority());
+        assertEquals("01", captor.getValue().getNumber());
+        assertEquals("1953", captor.getValue().getVolume());
     }
 
     @Test