Exemplo n.º 1
0
        public void GetRegistrationsByCriteriaTest()
        {
            RegistationService target = new RegistationService();                             // TODO: Initialize to an appropriate value
            GetReistrationByCriteriaRequest request  = new GetReistrationByCriteriaRequest(); // TODO: Initialize to an appropriate value
            ResponseService <DataSet>       expected = new ResponseService <DataSet>();       // TODO: Initialize to an appropriate value
            ResponseService <DataSet>       actual;

            //Status 1 = รออนุมัติ(สมัคร), Status 2 = อนุมัติ(สมัคร), Status 3 = ไม่อนุมัติ(สมัคร)
            //GetRegistrationsByCriteria(txtFirstNameAfterReg.Text, txtLastNameAfterReg.Text, null, null, txtIDNumberAfterReg.Text, null, txtEmailAfterReg.Text, null, Session["RegStatus"].ToString(), 1, 20, "2");
            request.FirstName      = "ดาวรุ่งรตา";
            request.LastName       = "วงษ์ไกร";
            request.MemberTypeCode = "1";
            request.IdCard         = "3670800584855";
            request.PageNo         = 1;
            request.Status         = "2";
            request.RecordPerPage  = 20;
            request.Para           = "2";

            actual = target.GetRegistrationsByCriteria(request);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Exemplo n.º 2
0
        public void GetRegistrationsByCriteriaTest()
        {
            IRegistrationService target   = CreateIRegistrationService(); // TODO: Initialize to an appropriate value
            string firstName              = string.Empty;                 // TODO: Initialize to an appropriate value
            string lastName               = string.Empty;                 // TODO: Initialize to an appropriate value
            Nullable <DateTime> startDate = new Nullable <DateTime>();    // TODO: Initialize to an appropriate value
            Nullable <DateTime> toDate    = new Nullable <DateTime>();    // TODO: Initialize to an appropriate value
            string IdCard         = string.Empty;                         // TODO: Initialize to an appropriate value
            string memberTypeCode = string.Empty;                         // TODO: Initialize to an appropriate value
            string email          = string.Empty;                         // TODO: Initialize to an appropriate value
            string compCode       = string.Empty;                         // TODO: Initialize to an appropriate value
            string status         = string.Empty;                         // TODO: Initialize to an appropriate value
            int    pageNo         = 0;                                    // TODO: Initialize to an appropriate value
            int    recordPerPage  = 0;                                    // TODO: Initialize to an appropriate value
            string para           = string.Empty;                         // TODO: Initialize to an appropriate value
            ResponseService <DataSet> expected = null;                    // TODO: Initialize to an appropriate value
            ResponseService <DataSet> actual;

            DTO.GetReistrationByCriteriaRequest request = new GetReistrationByCriteriaRequest();
            actual = target.GetRegistrationsByCriteria(request);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }