public void init() { _mockWalletInterestCalculator = MockRepository.GenerateStub <IWalletInterestCalculator>(); _calculator = new PersonInterestCalculator(_mockWalletInterestCalculator); _person = new Person(); }
public void init() { _cardCalculator = new CreditCardInterestCalculatorFactory().GetInterestCalculator(); _walletCalculator = new WalletInterestCalculatorFactory().GetWalletInterestCalculator(); _personCalculator = new PersonInterestCalculatorFactory().GetPersonInterestCalculator(); }