示例#1
0
        public NegotiationSupplierQuantityTable GetNegotiationSecondStageQunaitityTables()
        {
            var negotiationQTItem = GetNegotiationQuantityJsonWithItems().NegotiationSupplierQuantityTableItems;
            NegotiationSupplierQuantityTable negotiationSecondStage = new NegotiationSupplierQuantityTable(1, "Table 1", 1, negotiationQTItem);

            return(negotiationSecondStage);
        }
示例#2
0
        public void ShouldDeleteQuantityTable()
        {
            NegotiationSupplierQuantityTable supplierQuantityTable = new NegotiationSupplierQuantityTable();

            supplierQuantityTable.DeleteTable();

            Assert.Equal(ObjectState.Deleted, supplierQuantityTable.State);
        }
示例#3
0
        public void ShouldCreateNewNegotiationQuantityTable(int negotiationSecondStageId, string qtName, long _SupplierQuantityTableId)
        {
            List <NegotiationSupplierQuantityTableItem> negotia = new List <NegotiationSupplierQuantityTableItem>();

            NegotiationSupplierQuantityTable supplierQuantityTable = new NegotiationSupplierQuantityTable(negotiationSecondStageId, qtName, _SupplierQuantityTableId, negotia);

            Assert.Equal(negotiationSecondStageId, supplierQuantityTable.refNegotiationSecondStage);
            Assert.Equal(ObjectState.Added, supplierQuantityTable.State);
        }