Esempio n. 1
0
        public void Setup()
        {
            _tellTheTime = Substitute.For <ITellTheTime>();
            _card        = Substitute.For <ICard>();

            _tellTheTime.Now().Returns(new DateTime(2017, 10, 05));
            _card.GetCards().Returns(GetCards());
        }
        public void Setup()
        {
            _tellTheTime = Substitute.For <ITellTheTime>();
            _build       = Substitute.For <IBuild>();

            _tellTheTime.Today().Returns(new DateTime(2017, 12, 04));
            _tellTheTime.Now().Returns(new DateTime(2017, 12, 04));
        }
        public void SetUp()
        {
            _leanKitWebClient = Substitute.For <ILeanKitWebClient>();
            _tellTheTime      = Substitute.For <ITellTheTime>();

            _leanKitWebClient.GetBoardData().Returns(GetJsonResponse());
            _leanKitWebClient.GetCardDataFor(Arg.Any <int>()).Returns(CardDetailResponse());

            _tellTheTime.ParseDateToUkFormat(Arg.Any <string>()).Returns(new DateTime(2017, 10, 01));
        }
        public void Setup()
        {
            var builds = GetBuildDataFrom(new DateTime(2017, 01, 01), 300);

            _build       = Substitute.For <IBuild>();
            _tellTheTime = Substitute.For <ITellTheTime>();

            _build.GetBuilds().Returns(builds);
            _build.GetSuccessfulBuildStepsContaining(Arg.Any <string>()).Returns(
                builds
                .Where(b =>
                       b.BuildTypeId.Contains("_01") &&
                       b.Status.Equals(BuildStatus.Success.ToString()) &&
                       b.State.Equals("Finished", StringComparison.InvariantCultureIgnoreCase))
                .ToList());

            _tellTheTime.Today().Returns(new DateTime(2017, 11, 27));
            _tellTheTime.Now().Returns(new DateTime(2017, 11, 27));

            _buildThroughput = new BuildThroughput(_build, _tellTheTime);
        }
 public BuildDeployment(IBuild build, ITellTheTime tellTheTime)
 {
     _build       = build;
     _tellTheTime = tellTheTime;
 }
Esempio n. 6
0
 public BuildStabilityController(IBuild build, ITellTheTime tellTheTime)
 {
     _build       = build;
     _tellTheTime = tellTheTime;
 }
 public BuildStability(ITellTheTime tellTheTime, IBuild build)
 {
     _build       = build;
     _tellTheTime = tellTheTime;
 }
Esempio n. 8
0
 public CardsViewModel(ICard card, ITellTheTime tellTheTime)
 {
     _card        = card;
     _tellTheTime = tellTheTime;
 }
 public CardsController(ICard card, ITellTheTime tellTheTime)
 {
     _card        = card;
     _tellTheTime = tellTheTime;
 }
Esempio n. 10
0
 public BuildStabilityViewModel(IBuild build, ITellTheTime tellTheTime)
 {
     _build       = build;
     _tellTheTime = tellTheTime;
 }
 public CardCount(ICard card, ITellTheTime tellTheTime)
 {
     _card        = card;
     _tellTheTime = tellTheTime;
 }
 public BuildChartMenu(ITellTheTime tellTheTime, IBuild build)
 {
     _tellTheTime = tellTheTime;
     _build       = build;
 }
 public BuildMetricCalculator(ITellTheTime tellTheTime, IBuild build)
 {
     _tellTheTime = tellTheTime;
     _build       = build;
 }
Esempio n. 14
0
 public BuildThroughput(IBuild build, ITellTheTime tellTheTime)
 {
     _build       = build;
     _tellTheTime = tellTheTime;
 }
Esempio n. 15
0
 public Card(ILeanKitWebClient leanKitWebClient, ITellTheTime tellTheTime)
 {
     _leanKitLeanKitWebClient = leanKitWebClient;
     _tellTheTime             = tellTheTime;
 }
Esempio n. 16
0
 public Build(ITeamCityWebClient teamCityWebClient, ITellTheTime tellTheTime, IBuildsToExclude buildsToExclude)
 {
     _teamCityWebClient = teamCityWebClient;
     _tellTheTime       = tellTheTime;
     _buildsToExclude   = buildsToExclude;
 }
 public void Setup()
 {
     _tellTheTime = Substitute.For <ITellTheTime>();
     _build       = Substitute.For <IBuild>();
 }