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 ) ); }
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 ) ) ); }
private void SetRatings() { var urs = new UnitRatingsService2(); Ratings = urs.GetUnitRatingsFor(TeamCode, DateTime.Now); }