示例#1
0
        public WeatherForecastServiceTests()
        {
            _summariesService = Substitute.For <ISummariesService>();

            _summariesService
            .GetCount()
            .Returns(5);

            _summariesService
            .GetSummary(Arg.Any <int>())
            .Returns(SummaryText.From("Fake Summary"));
        }
 public WeatherForecast(DateTime date, int tempC, SummaryText summary)
 {
     Date = date;
     TemperatureC = TemperatureC.From(tempC);
     Summary = summary;
 }