Example #1
0
        public SwapsModel BalanceInhouse(InhouseModel inhouse)
        {
            BalancingStrategyFactory balancingStrategyFactory = new BalancingStrategyFactory();

            IBalancingStrategy balancingStrategy = balancingStrategyFactory.Make(BalancingStrategy.BruteForce);

            return balancingStrategy.Balance(inhouse.BlueTeam, inhouse.RedTeam);
        }
Example #2
0
        public SwapsModel BalanceInhouse(InhouseModel inhouse)
        {
            BalancingStrategyFactory balancingStrategyFactory = new BalancingStrategyFactory();

            IBalancingStrategy balancingStrategy = balancingStrategyFactory.Make(BalancingStrategy.BruteForce);

            return(balancingStrategy.Balance(inhouse.BlueTeam, inhouse.RedTeam));
        }