Пример #1
0
        public void Count_AllRecordsDeleted_0()
        {
            //Assemble
            int             expected        = 0;
            EnrollmentTable enrollmentTable = new EnrollmentTable();

            //Act
            int actual = enrollmentTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void Delete_NonExistantId_0()
        {
            //Assemble
            EnrollmentTable enrollmentTable = new EnrollmentTable();
            int             expected        = 0;

            //Act
            enrollmentTable.delete(0);
            int actual = enrollmentTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void Count_Created1Record_1()
        {
            //Assemble
            EnrollmentModel enrollmentModel = new EnrollmentModel();

            enrollmentModel.programId = programId;
            enrollmentModel.clientId  = clientId;
            enrollmentModel.dogId     = dogId;
            enrollmentModel.programId = programId;
            int             expected        = 1;
            EnrollmentTable enrollmentTable = new EnrollmentTable();

            //Act
            int enrollmentID = enrollmentTable.create(enrollmentModel);
            int actual       = enrollmentTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #4
0
        public void Count_Created1Record_1()
        {
            //Assemble
            EnrollmentModel enrollmentModel = new EnrollmentModel();

            enrollmentModel.programId     = programId;
            enrollmentModel.clientId      = clientId;
            enrollmentModel.dogId         = dogId;
            enrollmentModel.programId     = programId;
            enrollmentModel.paymentMethod = 1;
            enrollmentModel.name          = "Advanced";
            enrollmentModel.joinDate      = DateTime.Now;
            enrollmentModel.inviteIssued  = true;
            int             expected        = 1;
            EnrollmentTable enrollmentTable = new EnrollmentTable();

            //Act
            int enrollmentID = enrollmentTable.create(enrollmentModel);
            int actual       = enrollmentTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }