예제 #1
0
 public void constructAmazingFacebookRecommendation(IReviewBuilder builder)
 {
     builder.reset();
     builder.setRecommendation(Recommendation.RECOMMMEND);
     builder.setContent("Great place!");
     builder.setAuthorName("Jane Doe");
 }
예제 #2
0
 public void constructBadGoogleReview(IReviewBuilder builder)
 {
     builder.reset();
     builder.setRating(Rating.ONE);
     builder.setContent("Horrible place");
     builder.setAuthorName("John Smith");
 }