//Pick a company name from a previously generated list of business names.
String businessName = data.getCompany(false);
//Register the business with services
RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
businessName, numberOfBusinessService);
Thread.sleep(4000);
//Add the returnThread.sleep(8000);ed BusinessEntity to the data pool.
dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), 100);
}
else
{
//Get a business entity from the pool.
BusinessEntity businessEntity= dataPool.getDataElement();
if (businessEntity == null)
{
//Pick a company name from a previously generated list of business names.
String businessName = data.getCompany(false);
//Register the business with services
RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
businessName, numberOfBusinessService);
Thread.sleep(4000);
//Add the returnThread.sleep(8000);ed BusinessEntity to the data pool.
dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), 100);
}
else
{
//Find the random business by passing it's name and the AuthToken.
FindBusinessByName findBusinessByName = new FindBusinessByName(getAuthenticationToken.getAuthenticationToken(),