Exemplo n.º 1
0
 public FogyWeatherStrategyTests()
 {
     _fogyStrategy = new FogyWeatherStrategy();
     _dragon       = new DragonDto
     {
         ClawSharpness  = 10,
         FireBreath     = 3,
         ScaleThickness = 2,
         WingStrength   = 5
     };
 }
 public LongDryWeatherStrategyTests()
 {
     _longDryStrategy = new LongDryWeatherStrategy();
     _dragonModel     = new DragonDto
     {
         ClawSharpness  = 10,
         FireBreath     = 3,
         ScaleThickness = 2,
         WingStrength   = 5
     };
 }
Exemplo n.º 3
0
 public HeavyRainWeatherStrategyTests()
 {
     _heavyRainStrategy = new HeavyRainWeatherStrategy();
     _dragon            = new DragonDto
     {
         ClawSharpness  = 10,
         FireBreath     = 3,
         ScaleThickness = 2,
         WingStrength   = 5
     };
 }
Exemplo n.º 4
0
 public StormWeatherStrategyTests()
 {
     _stormStrategy = new StormWeatherStrategy();
     _dragonModel   = new DragonDto
     {
         ClawSharpness  = 10,
         FireBreath     = 3,
         ScaleThickness = 2,
         WingStrength   = 5
     };
 }
 public NormalWeatherStrategyTests()
 {
     _normalStrategy = new NormalWeatherStrategy();
     _dragon         = new DragonDto();
     _knight         = new KnightDto
     {
         Agility   = 8,
         Armor     = 4,
         Attack    = 0,
         Endurance = 8
     };
 }
Exemplo n.º 6
0
 public MySelf()
 {
     // default strategy
     Strategy = new SunshineWeather();
 }