Example #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);
        }
Example #2
0
 public BatmanPowerTest()
 {
     _powerTest = new BatmanPower(null);
     _context   = new PowerContext();
 }