public void CanCheckHasValidCombinations() { IOutfitEngineService oes = OutfitEngineProcessorTest.CreateOutfitEngineService(); List <int> lstgarments = new List <int>(); lstgarments.Add(2383557); List <int> lstflavors = new List <int>(); lstflavors.Add(1); lstflavors.Add(7); oes.HasValidCombinations(lstgarments, lstflavors); Assert.IsFalse(oes.HasValidCombinations(lstgarments, lstflavors)); }
public void CanRetrieveSmallClosetCombination(int flavorId) { IList <int> lst = new List <int>(); IOutfitEngineService service = CreateOutfitEngineService(); string values = "195391,2079106,1325626,2652391"; foreach (string val in values.Split(',')) { lst.Add(Convert.ToInt32(val)); } IList <int> lstFlavors = new List <int>(); lstFlavors.Add(flavorId); Assert.IsTrue(service.HasValidCombinations(lst, lstFlavors)); }
public void CanRetrieveClassicWithAccessories() { IOutfitEngineService service = CreateOutfitEngineService(); IList <int> lst = new List <int>(); string values = "179011,179401,179791,180181,180961,181741,182911,187981,184081,187591,1359166,1358776,1358386,1361116,1365016,1369306,1365406,1366966,1367746,2144626,2145016,2145406,2146186,2146966,2146576,2145796,2151646,2570491,2571271,2570881,2572441,2573611,2574391,2575561,2573221,2578681,2579461,2578291,2572831,2575171,2576341,2577121,2577901,2574001,2576731,2579071,2581021,2583751,2574781"; foreach (string val in values.Split(',')) { lst.Add(Convert.ToInt32(val)); } IList <int> lstFlavors = new List <int>(); lstFlavors.Add(1); Assert.IsTrue(service.HasValidCombinations(lst, lstFlavors)); }
public void CanRetrieveModerateClosetCombination() { IOutfitEngineService service = CreateOutfitEngineService(); IList <int> lst = new List <int>(); string values = "195391,180181,181741,182521,186421,187591,457546,459106,460666,464956,469246,688756,693436,692266,687586,689536,694996,698896,698116,1162996,1164166,1168456,1169236,1172746,1170016,1165336,1169626,1171186,1407526,1408696,1409866,1418446,1418056,1407917,1409087,1413377,1418447,1414937,966827,970727,972677,976187,966052,970342,972292,969952,2177386,2178556,2183626,2188696,2150086,2155156,2153986,2150476,2067406,2064286,2069746,2073646,2070526,2072476,2228866,2226916,20281,21841,25351,170041,169261,2979991,2981161,2570491,2571661,2572441,2636011,2636791,2637571"; foreach (string val in values.Split(',')) { lst.Add(Convert.ToInt32(val)); } IList <int> lstFlavors = new List <int>(); lstFlavors.Add(1); lstFlavors.Add(6); Assert.IsTrue(service.HasValidCombinations(lst, lstFlavors)); }
public void CanRetrieveWithPatterns() { IOutfitEngineService service = CreateOutfitEngineService(); IList <int> lst = new List <int>(); string values = "44531,244532,246092,261302,260911,262861,267151,1326796,1330306,1326019,1327969,1325629,1476949,1474219,1342006,1343176,1347856,2062726,2064286,2068576,2063118,2065458,2068188,2072868,2063898,2065068,2619631,2620801,2625481,2622361,2979991,2981161,2986231,2990521,2586871,2588821,2592331,2593501,2594671"; foreach (string val in values.Split(',')) { lst.Add(Convert.ToInt32(val)); } IList <int> lstFlavors = new List <int>(); lstFlavors.Add(1); lstFlavors.Add(8); Assert.IsTrue(service.HasValidCombinations(lst, lstFlavors)); }
public void CanRetrieveClassicWithTrendy() { IOutfitEngineService service = CreateOutfitEngineService(); IList <int> lst = new List <int>(); string values = "244531,1325626,2062726,2619631"; foreach (string val in values.Split(',')) { lst.Add(Convert.ToInt32(val)); } IList <int> lstFlavors = new List <int>(); lstFlavors.Add(1); lstFlavors.Add(8); Assert.IsTrue(service.HasValidCombinations(lst, lstFlavors)); }