use of org.estatio.module.party.dom.Organisation in project estatio by estatio.
the class ChamberOfCommerceCodeLookUpServiceTest method getChamberOfCommerceCodeCandidatesByCode_works.
@Test
public void getChamberOfCommerceCodeCandidatesByCode_works() throws Exception {
// given
ChamberOfCommerceCodeLookUpService service = new ChamberOfCommerceCodeLookUpService() {
@Override
OrganisationNameNumberViewModel findCandidateForFranceByCode(final String code) {
return new OrganisationNameNumberViewModel();
}
};
Organisation organisation = new Organisation() {
@Override
public String getAtPath() {
return "/FRA";
}
};
organisation.setName("Company");
// when
OrganisationNameNumberViewModel result = service.getChamberOfCommerceCodeCandidatesByCode(organisation.getName(), organisation.getAtPath());
// then
Assertions.assertThat(result).isNotNull();
}
use of org.estatio.module.party.dom.Organisation in project estatio by estatio.
the class Order_verifySupplier method $$.
@Action(semantics = SemanticsOf.IDEMPOTENT_ARE_YOU_SURE)
public Order $$(final OrganisationNameNumberViewModel organisationCheck) {
Organisation orgToVerify = (Organisation) order.getSeller();
orgToVerify.verify(organisationCheck);
return order;
}
Aggregations