コード例 #1
0
 public static Reviewer BuildReviewer3()
 {
     var reviewer = new Reviewer { Name = "Michael" };
     reviewer.AddReview("Code Complete", 2.5);
     reviewer.AddReview("C# In Depth", 3.0);
     reviewer.AddReview("Unit Testing", 3.5);
     reviewer.AddReview("Refactoring", 4.0);
     return reviewer;
 }
コード例 #2
0
 public static Reviewer BuildAllMaxScores()
 {
     var reviewer = new Reviewer { Name = "Maximillian" };
     reviewer.AddReview("Code Complete", 5.0);
     reviewer.AddReview("C# In Depth", 5.0);
     reviewer.AddReview("Clean Code", 5.0);
     reviewer.AddReview("Unit Testing", 5.0);
     reviewer.AddReview("Joel on Software", 5.0);
     reviewer.AddReview("Refactoring", 5.0);
     return reviewer;
 }
コード例 #3
0
 public static Reviewer BuildReviewer2()
 {
     var reviewer = new Reviewer { Name = "Seymour" };
     reviewer.AddReview("Code Complete", 3.0);
     reviewer.AddReview("C# In Depth", 3.5);
     reviewer.AddReview("Clean Code", 1.5);
     reviewer.AddReview("Unit Testing", 5.0);
     reviewer.AddReview("Joel on Software", 3.0);
     reviewer.AddReview("Refactoring", 3.5);
     return reviewer;
 }
コード例 #4
0
 public static Reviewer BuildReviewer5()
 {
     var reviewer = new Reviewer { Name = "Shelby" };
     reviewer.AddReview("Code Complete", 3.0);
     reviewer.AddReview("C# In Depth", 4.0);
     reviewer.AddReview("Clean Code", 2.0);
     reviewer.AddReview("Unit Testing", 3.0);
     reviewer.AddReview("Joel on Software", 3.0);
     return reviewer;
 }
コード例 #5
0
 public static Reviewer BuildReviewer4()
 {
     var reviewer = new Reviewer { Name = "Carol" };
     reviewer.AddReview("C# In Depth", 3.5);
     reviewer.AddReview("Clean Code", 3.0);
     reviewer.AddReview("Joel on Software", 4.5);
     reviewer.AddReview("Unit Testing", 4.0);
     reviewer.AddReview("Refactoring", 2.5);
     return reviewer;
 }
コード例 #6
0
 public static Reviewer BuildOneReviewMin()
 {
     var reviewer = new Reviewer { Name = "Mini" };
     reviewer.AddReview("Code Complete", 0.0);
     return reviewer;
 }
コード例 #7
0
 public static Reviewer BuildOneReviewMax()
 {
     var reviewer = new Reviewer { Name = "Maximillian" };
     reviewer.AddReview("Code Complete", 5.0);
     return reviewer;
 }
コード例 #8
0
 public static Reviewer BuildAReviewerThatReviewedSomethingUnique()
 {
     var reviewer = new Reviewer { Name = "Fisher" };
     reviewer.AddReview("Chess", 4.0);
     return reviewer;
 }
コード例 #9
0
 public PearsonCorrelation(Reviewer compareTo, Reviewer compareWith)
 {
     CompareTo = compareTo;
     CompareWith = compareWith;
     similarTitles = FindSharedItems();
 }
コード例 #10
0
 public void SetUp()
 {
     reviewer = new Reviewer();
 }