public void CheckPositionInRangeOneBasedTest()
 {
     int width = 12;
     int height = 8;
     SingleLayoutEditor target = new SingleLayoutEditor(width, height);
     int pos = 0;
     target.CheckPositionInRangeOneBased(pos);
 }
        // Creates a SingleLayoutEditor from a SingleLayoutLight object
        // This is used when data is received from the server, it is converted to a form more suitable
        // for working with the PlateControl.
        // The main differences are that:
        // 1. A SingleLayoutLight only lists used wells, whereas a SingleLayoutEditor has an entry for every position
        public SingleLayoutEditor CreateSingleLayoutEditor(SingleLayoutLight singleLayoutLight, int width, int height, FillSettingsModel fillSettings)
        {
            SingleLayoutEditor singleLayoutEditor = new SingleLayoutEditor(width, height);
            foreach (LayoutPos layoutPos in singleLayoutLight.LayoutPositions)
            {
                int position = layoutPos.Id;
                singleLayoutEditor.CheckPositionInRangeOneBased(position);

                LayoutPosEditor layoutPosEditor = singleLayoutEditor[position - 1];
                ModifyLayoutPosEditorForPosition(layoutPos, ref layoutPosEditor, fillSettings);
            }
            return singleLayoutEditor;
        }