Beispiel #1
0
        private static IPower RegisterDependencies()
        {
            //In a real project, this part must be with dependency injection using decorators...
            BatmanPower batman = new BatmanPower(null);
            HulkPower   hulk   = new HulkPower(batman);
            FlashPower  flash  = new FlashPower(hulk);

            return(flash);
        }
Beispiel #2
0
 public HulkPowerTest()
 {
     _powerTest = new HulkPower(null);
     _context = new PowerContext();
 }