public void ShouldDeleteJsonTable()
        {
            NegotiationQuantityItemJson negotiationQuantityItemJson = new NegotiationQuantityItemJson();

            negotiationQuantityItemJson.Delete();

            Assert.Equal(ObjectState.Deleted, negotiationQuantityItemJson.State);
        }
        public NegotiationQuantityItemJson GetNegotiationQuantityJsonWithItems()
        {
            NegotiationQuantityItemJson itemJson = new NegotiationQuantityItemJson();
            List <NegotiationSupplierQuantityTableItem> tableItems = new List <NegotiationSupplierQuantityTableItem>()
            {
                new NegotiationSupplierQuantityTableItem(1, 1, 1, 1, "Price", 1),
                new NegotiationSupplierQuantityTableItem(1, 1, 1, 1, "Price", 1),
                new NegotiationSupplierQuantityTableItem(1, 1, 1, 1, "Discount", 1),
                new NegotiationSupplierQuantityTableItem(1, 1, 1, 1, "Price", 2),
                new NegotiationSupplierQuantityTableItem(1, 1, 1, 1, "Price", 2),
                new NegotiationSupplierQuantityTableItem(1, 1, 1, 1, "Discount", 2)
            };

            itemJson.NegotiationSupplierQuantityTableItems.AddRange(tableItems);
            return(itemJson);
        }
        public void ShouldCreateNewQuantityJson(int tableId)
        {
            NegotiationQuantityItemJson negotiationQuantityItemJson = new NegotiationQuantityItemJson(tableId);

            Assert.Equal(tableId, negotiationQuantityItemJson.NegotiationSupplierQuantityTableId);
        }