Ejemplo n.º 1
0
        public void SetPointToPassToPostQualificationTest()
        {
            Tender tender = new Tender();

            tender.SetPointToPassToPostQualification(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);
            Assert.Equal(ObjectState.Modified, tender.State);
        }
Ejemplo n.º 2
0
        public Tender GetPreQualification()
        {
            Tender generalTender = new Tender("022001000000", 1, (int)Enums.TenderType.PreQualification,
                                              (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);

            generalTender.UpdateTenderDates(DateTime.Now.Date.AddDays(1), DateTime.Now.Date.AddDays(2),
                                            DateTime.Now.Date.AddDays(3), DateTime.Now, null, null, false, null, 1, "building name", "Floar number",
                                            "Department Number", null);
            generalTender.SetPointToPassToPostQualification(4, 40, 60, (int)Enums.PreQualificationType.Large);
            generalTender.UpdateTenderStatus(Enums.TenderStatus.Approved, "", 11, Enums.TenderActions.Approve);
            return(generalTender);
        }