use of org.estatio.module.lease.migrations.CreateRetroInvoices in project estatio by estatio.
the class CreateRetroInvoices_IntegTest method setup.
@Before
public void setup() {
createRetroInvoices = new CreateRetroInvoices() {
{
leaseRepository = CreateRetroInvoices_IntegTest.this.leaseRepository;
invoiceForLeaseRepository = CreateRetroInvoices_IntegTest.this.invoiceForLeaseRepository;
invoiceRepository = CreateRetroInvoices_IntegTest.this.invoiceRepository;
propertyRepository = CreateRetroInvoices_IntegTest.this.propertyRepository;
invoiceCalculationService = CreateRetroInvoices_IntegTest.this.invoiceCalculationService;
factoryService = CreateRetroInvoices_IntegTest.this.factoryService;
}
};
lease = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
}
use of org.estatio.module.lease.migrations.CreateRetroInvoices in project estatio by estatio.
the class EstatioFixtureScripts method createRetroInvoicesForProperty.
@Action(restrictTo = RestrictTo.PROTOTYPING)
@MemberOrder(sequence = "2")
public List<FixtureResult> createRetroInvoicesForProperty(final Property property, @ParameterLayout(named = "Start due date") final LocalDate startDueDate, @Parameter(optionality = Optionality.OPTIONAL) @ParameterLayout(named = "Nextdue date") final LocalDate nextDueDate) {
final CreateRetroInvoices creator = container.newTransientInstance(CreateRetroInvoices.class);
final FixtureScript.ExecutionContext executionContext = fixtureScripts.newExecutionContext(null);
creator.createProperty(property, startDueDate, nextDueDate, executionContext);
return executionContext.getResults();
}
use of org.estatio.module.lease.migrations.CreateRetroInvoices in project estatio by estatio.
the class EstatioFixtureScripts method createRetroInvoicesForLease.
@Action(restrictTo = RestrictTo.PROTOTYPING)
@ActionLayout(cssClassFa = "fa-bolt")
@MemberOrder(sequence = "3")
public List<FixtureResult> createRetroInvoicesForLease(final Lease lease, @ParameterLayout(named = "Start due date") final LocalDate startDueDate, @ParameterLayout(named = "Nextdue date") final LocalDate nextDueDate) {
final CreateRetroInvoices creator = container.newTransientInstance(CreateRetroInvoices.class);
final FixtureScript.ExecutionContext executionContext = fixtureScripts.newExecutionContext(null);
creator.createLease(lease, startDueDate, nextDueDate, executionContext);
return executionContext.getResults();
}
Aggregations