public bool ExecuteNewCampaign(decimal budget) { AddressProvider myAddressProvider = new AddressProvider(); List <CustomerAddress> listOfAddresses = myAddressProvider.GetAddressesNewProspects(); DoAfterGetAddresses doAfterGetAddresses; if (budget < 10000) { BallpenCompany myBallpenCompany = new BallpenCompany(); doAfterGetAddresses = myBallpenCompany.SendBallPens; } else { CoffeeCupCompany myCoffeeCupCompany = new CoffeeCupCompany(); doAfterGetAddresses = myCoffeeCupCompany.SendCoffeeCups; } return(myAddressProvider.HandleCompaign(doAfterGetAddresses)); }
public bool MySendCoffeeCups() { return(CoffeeCupCompany.SendCoffeeCups(listOfAddresses)); }