public void SetPointToPassToQualificationTest() { Tender tender = new Tender(); tender.SetPointToPassToQualification(1000, 100, 10000000, (int)Enums.QualificationItemType.Range); Assert.Equal(1000, tender.TenderPointsToPass); Assert.Equal(100, tender.TechnicalAdministrativeCapacity); Assert.Equal(10000000, tender.FinancialCapacity); Assert.Equal((int)Enums.QualificationItemType.Range, tender.QualificationTypeId); }
public Tender GetGeneralTenderWithQualificationTypeId(int qualificationTypeId) { Tender tender = new Tender("022001000000", 1, (int)Enums.TenderType.NewTender, (int)Enums.InvitationType.Public, "Tender name test", "tender number", "Purpuse Purpuse Purpuse Purpuse Purpuse Purpuse Purpuse Purpuse ", null, 1, 1, 1, null, null, null, null, null, null, null, 1, 1000, null, 1, // replace conditon book vale with null null, null, null, null, null, null, null, null, null, false, null, null, 500, null); tender.UpdateTenderDates(DateTime.Now.Date.AddDays(1), DateTime.Now.Date.AddDays(2), DateTime.Now.Date.AddDays(3), null, null, null, false, null, 1, "building name", "Floar number", "Department Number", null); tender.SetPointToPassToQualification(6, 40, 60, qualificationTypeId); return(tender); }