[Test] public void NoFacilitatedBy() { Retrospective facilitated = Instance.Create.Retrospective("Has FacilitatedBy", SandboxProject); Retrospective notFacilitated = Instance.Create.Retrospective("No FacilitatedBy", SandboxProject); Member facilitator = GetAFacilitator(); facilitated.FacilitatedBy = facilitator; facilitated.Save(); TestFacilitatedBy(notFacilitated, facilitated, null); }
[Test] public void NoIteration() { Retrospective scheduled = SandboxProject.CreateRetrospective("Has Iteration"); Retrospective notScheduled = SandboxProject.CreateRetrospective("No Iteration"); Iteration iteration = SandboxProject.CreateIteration(); scheduled.Iteration = iteration; scheduled.Save(); TestIteration(notScheduled, scheduled, null); }
[Test] public void NoDate() { Retrospective hasDate = Instance.Create.Retrospective("Has Date", SandboxProject); Retrospective noDate = Instance.Create.Retrospective("No Date", SandboxProject); DateTime expectedDate = DateTime.Now.Date; hasDate.Date = expectedDate; hasDate.Save(); TestDate(noDate, hasDate, null); }
[Test] public void NoTeam() { Retrospective hasTeam = SandboxProject.CreateRetrospective("Has Team"); Retrospective noTeam = SandboxProject.CreateRetrospective("No Team"); Team expectedTeam = Instance.Create.Team("Team" + SandboxName); hasTeam.Team = expectedTeam; hasTeam.Save(); TestTeam(noTeam, hasTeam, null); }
[Test] public void Date() { Retrospective hasDate = Instance.Create.Retrospective("Has Date", SandboxProject); Retrospective noDate = Instance.Create.Retrospective("No Date", SandboxProject); DateTime expectedDate = DateTime.Now; hasDate.Date = expectedDate; expectedDate = expectedDate.Date; // round to nearest day, as we'd expect Mort to. hasDate.Save(); TestDate(hasDate, noDate, expectedDate); }