public bool Equal(SuperStudentGPADiscountMultiDriverTestCase testCase)
        {
            if (object.ReferenceEquals(null, testCase))
            {
                return(false);
            }

            if (object.ReferenceEquals(this, testCase))
            {
                return(true);
            }

            return(IsEqual(testCase));
        }
        private List <SuperStudentGPADriverDataSUT> GetMultiDriverSUTData(SuperStudentGPADiscountMultiDriverTestCase tc)
        {
            SuperStudentGPADriverDataSUT driver1Data = new SuperStudentGPADriverDataSUT()
            {
                DriverAge       = 29,
                GPA             = tc.Driver1GPA,
                MaritialStatus  = "Single",
                Relationship    = "Child",
                StudentStatus   = "College",
                ViolationStatus = "None"
            };

            SuperStudentGPADriverDataSUT driver2Data = new SuperStudentGPADriverDataSUT()
            {
                DriverAge       = 29,
                GPA             = tc.Driver2GPA,
                MaritialStatus  = "Single",
                Relationship    = "Child",
                StudentStatus   = "College",
                ViolationStatus = "None"
            };

            SuperStudentGPADriverDataSUT driver3Data = new SuperStudentGPADriverDataSUT()
            {
                DriverAge       = 29,
                GPA             = tc.Driver3GPA,
                MaritialStatus  = "Single",
                Relationship    = "Child",
                StudentStatus   = "College",
                ViolationStatus = "None"
            };

            return(new List <SuperStudentGPADriverDataSUT> {
                driver1Data, driver2Data, driver3Data
            });
        }
 private bool IsEqual(SuperStudentGPADiscountMultiDriverTestCase testCase)
 {
     return(testCase.Driver1GPA.Equals(this.Driver1GPA) &&
            testCase.Driver2GPA.Equals(this.Driver2GPA) &&
            testCase.Driver3GPA.Equals(this.Driver3GPA));
 }
        private double GetDiscountAmountValueFromSUT(SuperStudentGPADiscountMultiDriverTestCase tc)
        {
            SuperStudentGPADiscountSUT systemUnderTest = new SuperStudentGPADiscountSUT();

            return(systemUnderTest.GetDiscountAmount(GetMultiDriverSUTData(tc)));
        }