Esempio n. 1
0
        public List <PositionPublish> DefaultDateTest(object parameter)
        {
            List <PositionPublish> result = PublishPositionExe.DefaultDate(parameter);

            return(result);
            // TODO: add assertions to method PublishPositionExeTest.DefaultDateTest(Object)
        }
Esempio n. 2
0
        public void DefaultDateTest()
        {
            //Arrange
            string          action    = "DefaultDate";
            SearchParameter parameter = new SearchParameter()
            {
                Operate      = action,
                SchoolYear   = "20192020",
                PositionType = "LTO"
            };

            // Act

            List <PositionPublish> myDate = PublishPositionExe.DefaultDate(parameter);

            //myGridview.AutoGenerateColumns = true;
            //myGridview.DataSource = myDatasource;
            //myGridview.DataBind();

            var startDate   = myDate[0].StartDate;
            var endDate     = myDate[0].EndDate;
            var publishDate = myDate[0].DatePublish;
            var openDate    = myDate[0].DateApplyOpen;
            var closeDate   = myDate[0].DateApplyClose;

            string expect = DateFC.YMD(DateTime.Now);
            string result = publishDate;

            //Assert
            Assert.AreEqual(expect, result, $"default publish Date Value  { result}");
        }