コード例 #1
0
        public void Setup()
        {
            _kernel = new StandardKernel();
            _kernel.Load(Assembly.GetExecutingAssembly());
            _interestCalculator = _kernel.Get <ICalculator>();

            _person = CardHolderFactory.CreatePersonCardHolder();

            _wallet1 = _person.WithPhysicalWallet();
            _wallet1.WithVisaCreditCard().WithBalance(100);
            _wallet1.WithDiscoverCreditCard().WithBalance(100);

            _wallet2 = _person.WithPhysicalWallet();
            _wallet2.WithMasterCardCreditCard().WithBalance(100);
        }