protected function setUp()
 {
     $organizationAddressValidator = new OrganizationAddressValidator();
     $organizationAddressValidator->setAssertion(new AssertionAdapter());
     $this->addressDirector = new AddressDirector(new OrganizationAddressBuilder($organizationAddressValidator), new IdentifierService(new IdentityBuilder()));
     $this->appService = new AddOrganization(new IdentifierService(new IdentityBuilder()), new OrganizationRepositoryInMemoryImpl([]), new EventBusNoOp(), $this->addressDirector);
 }
 protected function setUp()
 {
     $this->organizationAddressValidator = new OrganizationAddressValidator();
     $this->organizationAddressValidator->setAssertion(new AssertionAdapter());
     $this->addressDirector = new AddressDirector(new OrganizationAddressBuilder($this->organizationAddressValidator), new IdentifierService(new IdentityBuilder()));
     $this->updateOrganizationAppService = new UpdateOrganization(new OrganizationRepositoryInMemoryImpl([FakeOrganization::build()]), $this->addressDirector);
 }
 /**
  * @return Address
  *
  * @throws AddressBuilderException
  */
 public function getAddress()
 {
     $this->validator->validate($this->address);
     return $this->address;
 }