コード例 #1
0
        // GET api/<controller>
        public DayInfo Get()
        {
            string          location = "Wellington";
            int             daysAway = 0;
            WeatherAccessor accessor = new WeatherAccessor();

            return(accessor.GetDayInfo());
        }
コード例 #2
0
        public void TestGetDayInfo()
        {
            DayInfo dayInfo = accessor.GetDayInfo();

            Assert.IsNotNull(dayInfo);
        }