public void Duration()
        {
            var runningBuild = new RunningBuild
                               {
                                   StartTime = DateTime.Now
                               };

            Thread.Sleep(TimeSpan.FromSeconds(1));
            
            Assert.IsTrue(runningBuild.Duration > TimeSpan.FromSeconds(1));
            Assert.IsTrue(runningBuild.Duration < TimeSpan.FromSeconds(2));
        }
        public static ICEBuild Translate(RunningBuild build)
        {
            ICEBuild ceBuild = new CEBuild()
            {
                id                 = build.id,
                state              = build.state,
                status             = build.status,
                branchName         = build.branchName,
                number             = build.number,
                buildTypeId        = build.buildTypeId,
                href               = build.href,
                webUrl             = build.webUrl,
                percentageComplete = build.percentageComplete
            };

            return(ceBuild);
        }