public void WhenUpdatingWithFailingBuild()
 {
     _unknownBuildOutcome = new BuildOutcome("buildName", 11, Status.Unknown());
     Builds.Instance      = new Builds(new Dictionary <string, BuildProperties>(), Status.Unknown());
     _result = Builds.Instance.Update(new BuildOutcomeCollection()
     {
         _unknownBuildOutcome
     });
 }
        public void WhenUpdatingWithBuildStillInProgress()
        {
            const string buildname = "buildName";
            var          builds    = new Dictionary <string, BuildProperties> {
                { buildname, new BuildProperties(11, Status.Success(), true) }
            };

            _inProgressBuildOutcome = new BuildOutcome(buildname, 11, Status.Building());
            Builds.Instance         = new Builds(builds, Status.Success());
            _result = Builds.Instance.Update(new BuildOutcomeCollection()
            {
                _inProgressBuildOutcome
            });
        }
        public void WhenUpdatingWithFailedBuild()
        {
            const string buildname = "buildName";
            var          builds    = new Dictionary <string, BuildProperties> {
                { buildname, new BuildProperties(11, Status.Fail(), false) }
            };

            _failedBuildOutcome = new BuildOutcome(buildname, 11, Status.Fail());
            Builds.Instance     = new Builds(builds, Status.Fail());
            _result             = Builds.Instance.Update(new BuildOutcomeCollection()
            {
                _failedBuildOutcome
            });
        }