public NegotiationSupplierQuantityTable GetNegotiationSecondStageQunaitityTables() { var negotiationQTItem = GetNegotiationQuantityJsonWithItems().NegotiationSupplierQuantityTableItems; NegotiationSupplierQuantityTable negotiationSecondStage = new NegotiationSupplierQuantityTable(1, "Table 1", 1, negotiationQTItem); return(negotiationSecondStage); }
public void ShouldDeleteQuantityTable() { NegotiationSupplierQuantityTable supplierQuantityTable = new NegotiationSupplierQuantityTable(); supplierQuantityTable.DeleteTable(); Assert.Equal(ObjectState.Deleted, supplierQuantityTable.State); }
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); }