public ITotalTimeFactory CreateTotalTimeFactory()
        {
            ITotalTimeFactory factory = null;

            try
            {
                factory = new TotalTimeFactory();
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(factory);
        }
 public ITotalTime Calculate(
     ITotalTimeFactory totalTimeFactory,
     Isark sark,
     ILength Length,
     ITPz z)
 {
     return(totalTimeFactory.Create(
                sark.Value
                .Select(w =>
                        z.GetElementAtAsint(
                            w.sIndexElement,
                            w.aIndexElement,
                            w.rIndexElement,
                            w.kIndexElement)
                        *
                        Length.GetElementAtAsdecimal(
                            w.kIndexElement))
                .Sum()));
 }