public void FindListOfIcus_ShouldReturnAListOfIcusGivenLayoutNo()
        {
            var _layoutInfo = new LayoutInformation();
            var _noOfIcus   = _layoutInfo.FindListOfIcus(4);

            foreach (var icu in _noOfIcus)
            {
                Assert.True(icu.LayoutId == 4);
            }
        }
 public ActionResult <IEnumerable <Layouts> > GetLayoutInfo()
 {
     try
     {
         LayoutInformation layoutInformation = new LayoutInformation();
         var layoutStore = LayoutInformation.Layouts;
         foreach (Layouts layout in layoutStore)
         {
             layout.NoOfIcus   = layoutInformation.FindNoOfIcus(layout.LayoutId);
             layout.ListOfIcus = layoutInformation.FindListOfIcus(layout.LayoutId);
         }
         return(Ok(layoutStore));
     }
     catch (Exception)
     {
         return(StatusCode(500));
     }
 }