public void SimpleTwoWide1Bin() { var comp2 = Helpers.GetStringList(1, 1); var comp1 = Helpers.GetStringList("a", "a"); var result = CompoundNumberEnumerator.Enumerate(comp1, comp2); result.Count.Should().Be(1); }
public void PrintMaintenanceBins() { var subBins = Helpers.GetStringList(1, 8); var shelves = Helpers.GetStringList(1, 7); var columns = Helpers.GetStringList(1, 7); var rows = Helpers.GetStringList("J", "J"); var result = CompoundNumberEnumerator.Enumerate(rows, columns, shelves, subBins); Console.WriteLine(result.Count); //Remove existing... var newBins = result.Where(z => !ExistingBins.Existing.Contains($"MU{z[0]}{z[1]}.{z[2]}.{z[3]}")).ToList(); Console.WriteLine(newBins.Count); PrintResult(newBins); }