コード例 #1
0
        private static void InstanciateObjects()
        {
            _faceUnlock        = new FaceUnlock();
            _fingerPrintUnlock = new FingerprintUnlock();

            _chromeBrowser = new ChromeBrowser();
            _torBrowser    = new TorBrowser();

            _addition = new AdditionCalculator();
            _division = new DivisionCalculator();
        }
コード例 #2
0
ファイル: PhoneModel.cs プロジェクト: vatsjay/DesignPattern
 internal PhoneModel(IUnlockStategy unlockPhone, IBrowseWebStrategy browseWeb, ICalculateStrategy calculate)
 {
     _unlockPhone = unlockPhone;
     _browseWeb   = browseWeb;
     _calculate   = calculate;
 }