コード例 #1
0
        public void ShouldDeleteJsonTable()
        {
            NegotiationQuantityItemJson negotiationQuantityItemJson = new NegotiationQuantityItemJson();

            negotiationQuantityItemJson.Delete();

            Assert.Equal(ObjectState.Deleted, negotiationQuantityItemJson.State);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void ShouldCreateNewQuantityJson(int tableId)
        {
            NegotiationQuantityItemJson negotiationQuantityItemJson = new NegotiationQuantityItemJson(tableId);

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