Ejemplo n.º 1
0
 public void TestNewRatingsRetrieval2_2016()
 {
     var sut = new UnitRatingsService2();
      var currRatings = sut.GetUnitRatingsFor( "CP", new DateTime( 2016, 9, 9 ) );
      const string expectedValue = "DACCBA";
      Assert.IsTrue( currRatings.Equals( expectedValue ),
     string.Format( "CP team rating should be {1} not {0}", currRatings, expectedValue ) );
 }
Ejemplo n.º 2
0
 public void TestGetSunday2016()
 {
     var sut = new UnitRatingsService2();
      var theSunday = sut.GetSundayFor( new DateTime( 2016, 9, 9 ) );
      Assert.IsTrue( theSunday.Equals( new DateTime( 2016, 9, 11 ) ) );
 }
Ejemplo n.º 3
0
 private void SetRatings()
 {
     var urs = new UnitRatingsService2();
      Ratings = urs.GetUnitRatingsFor(TeamCode, DateTime.Now);
 }