コード例 #1
0
        public IEnumerable <SchedulePlan> GetAllSchedulePlan()
        {
            ReadSchedule readSchedule = new ReadSchedule();

//            var result=JsonConvert.SerializeObject(readSchedule.getAll());
            return(readSchedule.getAll());
        }
コード例 #2
0
        public void GetFlightExpensiveThan(decimal price)
        {
            ReadSchedule readSchedule = new ReadSchedule();
            var          allSchedules = readSchedule.getAll();

            Assert.True(allSchedules.Max(x => x.Price) > price);
        }
コード例 #3
0
        public void DataIsType()
        {
            ReadSchedule readSchedule = new ReadSchedule();

            Assert.IsType <List <SchedulePlan> >(readSchedule.getAll());
        }
コード例 #4
0
        public void DataNotNull()
        {
            ReadSchedule readSchedule = new ReadSchedule();

            Assert.NotNull(readSchedule.getAll());
        }