public void HowManyTimesHasFixedSomeoneElsesBuild_SomoeneElseFixedMyBuild_Zero() { var currentBuildDefinitionOrderedChronoligically = new List <BuildStatus> { new BuildStatus { BuildStatusEnum = BuildStatusEnum.Broken, RequestedBy = "currentUser" }, new BuildStatus { BuildStatusEnum = BuildStatusEnum.Working, RequestedBy = "someoneElse" } }; Assert.AreEqual(0, FixedSomeoneElsesBuild.HowManyTimesHasFixedSomeoneElsesBuildForBuild(currentBuildDefinitionOrderedChronoligically, "currentUser")); }
public void AcrossBuilds_BrokenBuildInProjectOneAndFixedInProjectTwo_NotFixed() { var currentBuildDefinitionOrderedChronoligically = new List <BuildStatus> { new BuildStatus { BuildStatusEnum = BuildStatusEnum.Broken, BuildDefinitionId = "1", RequestedBy = "someoneElse" }, new BuildStatus { BuildStatusEnum = BuildStatusEnum.Working, BuildDefinitionId = "2", RequestedBy = "currentUser" } }; Assert.AreEqual(0, FixedSomeoneElsesBuild.HowManyTimesFixedSomeoneElsesBuildForAllBuilds(currentBuildDefinitionOrderedChronoligically, "currentUser")); }
public void HowManyTimesHasFixedSomeoneElsesBuild_NoBuilds_Zero() { var currentBuildDefinitionOrderedChronoligically = new List <BuildStatus>(); Assert.AreEqual(0, FixedSomeoneElsesBuild.HowManyTimesHasFixedSomeoneElsesBuildForBuild(currentBuildDefinitionOrderedChronoligically, "currentUser")); }