public void FindNoOfIcus_ShouldGetTheNumberOfIcusWithAGivenLayout()
        {
            var _layoutInfo = new LayoutInformation();
            var _noOfIcus   = _layoutInfo.FindNoOfIcus(4);

            Assert.True(_noOfIcus == 8);
        }
 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));
     }
 }