Ejemplo n.º 1
0
        public BuildBusterStrategy Get(GuiltStrategyType guiltType)
        {
            switch (guiltType)
            {
            case GuiltStrategyType.First:
                return(new FirstGuiltStrategy());

            case GuiltStrategyType.Last:
                return(new LastGuiltStrategy());
            }

            throw new UnknownStrategyTypeException();
        }
Ejemplo n.º 2
0
        public BuildBusterStrategy Get(GuiltStrategyType guiltType)
        {
            switch(guiltType)
            {
                case GuiltStrategyType.First:
                    return new FirstGuiltStrategy();

                case GuiltStrategyType.Last:
                    return new LastGuiltStrategy();
            }

            throw new UnknownStrategyTypeException();
        }
Ejemplo n.º 3
0
 private void SetUpBreaker(GuiltStrategyType guiltStrategy)
 {
     _configSettings.Stub(s => s.BreakerGuiltStrategy).Return(guiltStrategy);
     _buildBuster = new BuildBuster(_configSettings, _fixterStrategy, _guiltFactory);
 }
Ejemplo n.º 4
0
 private void SetUpBreaker(GuiltStrategyType guiltStrategy)
 {
     _configSettings.Stub(s => s.BreakerGuiltStrategy).Return(guiltStrategy);
     _buildBuster = new BuildBuster(_configSettings, _fixterStrategy, _guiltFactory);
 }