public SuperStudentDiscountOracle(SuperStudentDiscountApiTestCase testCase)
 {
     _testCase = testCase;
     _httpClient.DefaultRequestHeaders
     .Accept
     .Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
Ejemplo n.º 2
0
 private bool IsEqual(SuperStudentDiscountApiTestCase testCase)
 {
     return(testCase.DriverAge.Equals(this.DriverAge) &&
            testCase.DriverGPA.Equals(this.DriverGPA) &&
            testCase.MaritalStatus.Equals(this.MaritalStatus) &&
            testCase.Relationship.Equals(this.Relationship) &&
            testCase.StudentStatus.Equals(this.StudentStatus) &&
            testCase.Violations.Equals(this.Violations));
 }
Ejemplo n.º 3
0
        public bool Equal(SuperStudentDiscountApiTestCase testCase)
        {
            if (object.ReferenceEquals(null, testCase))
            {
                return(false);
            }

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

            return(IsEqual(testCase));
        }