public void RunBeforeEachTest() { _DesiredTraits = new List<TraitVM>(); _Bull = new SaleBull(); _SystemUnderTest = new TraitMatcher(); _DesiredValue = null; }
public void RunBeforeEachTest() { _BWColName = Enum.GetName(typeof (BullSaleViewNameEnum), BullSaleViewNameEnum.BW_EBV); _WWdColName = Enum.GetName(typeof (BullSaleViewNameEnum), BullSaleViewNameEnum.WWD_EBV); _YwtColName = Enum.GetName(typeof (BullSaleViewNameEnum), BullSaleViewNameEnum.YWT_EBV); _Percentiles = new List<StrainPercentiles> { new StrainPercentiles { ColName = _BWColName, Percentiles = new Dictionary<int, decimal> { {0, 0M}, {10, 31M}, {25, 32M}, {40, 34M}, {60, 36M}, {75, 37M}, {90, 39M}, {100, 40M} } }, new StrainPercentiles { ColName = _WWdColName, Percentiles = new Dictionary<int, decimal> { {0, 5000M}, {10, 4500M}, {25, 4000M}, {40, 3500M}, {60, 3000M}, {75, 2500M}, {90, 2000M}, {100, 1500M} } }, new StrainPercentiles { ColName = _YwtColName, Percentiles = new Dictionary<int, decimal> { {0, 0.01M}, {10, 0.02M}, {25, 0.03M}, {40, 0.04M}, {60, 0.05M}, {75, 0.06M}, {90, 0.07M}, {100, 0.08M} } } }; _SystemUnderTest = new TraitMatcher(); }
public Search(IEnumerable<SaleBull> bulls, IEnumerable<TraitVM> desiredTraits, IEnumerable<StrainPercentiles> percentiles/*, int basketSize*/) { _bulls = bulls; _desiredTraits = desiredTraits; //_basketSize = basketSize; _percentiles = percentiles; _traitMatcher = new TraitMatcher(); }