Esempio n. 1
0
        public List <Offer> GetOfferList()
        {
            List <Offer> offers = new List <Offer>();
            Offer        offer1 = new Offer(1, "1299659801", null, 1, false);
            Offer        offer2 = new Offer(1, "1299659100", null, 1, false);

            offer1.SaveOfferAwardingValues(1, 1000, null, null);
            offer1.Supplier = new Core.Supplier("1299659801", "CR Name1", null);
            offer1.AddActionToOfferHistory((int)Enums.TenderStatus.OffersAwardedConfirmed, (int)Enums.OfferStatus.Received, Enums.TenderActions.ApproveAwarding, 111, "1299659801");
            offer1.AddActionToOfferHistory((int)Enums.TenderStatus.OffersAwardedConfirmed, (int)Enums.OfferStatus.Received, Enums.TenderActions.ApproveAwarding, 111, "1299659100");
            offer2.Supplier = new Core.Supplier("1299659100", "CR Name2", null);
            offers.Add(offer1);
            offers.Add(offer2);
            offer1.SetOfferLocalContentDetails();
            return(offers);
        }
Esempio n. 2
0
        public void Should_AddActionToOfferHistory()
        {
            Offer offer = new Offer(tenderId, commericalRegisterNo, new List <SupplierTenderQuantityTable> {
                new SupplierTenderQuantityTable()
                {
                    Id = 1, QuantitiyItemsJson = new SupplierTenderQuantityTableItemJson(new List <SupplierTenderQuantityTableItem>()
                    {
                        new SupplierTenderQuantityTableItem()
                        {
                            Id = 1
                        }
                    })
                }
            }, offerPresentationWayid);

            offer.AddActionToOfferHistory(1, 1, SharedKernel.Enums.TenderActions.AcceptInvitation, 1, commericalRegisterNo);
            Assert.NotEmpty(offer.OffersHistory);
        }