Exemplo n.º 1
0
        public void Should_Success_Instantiate()
        {
            var packingReceiptItems = new List <NewShipmentDocumentPackingReceiptItemViewModel>()
            {
                new NewShipmentDocumentPackingReceiptItemViewModel()
            };
            NewShipmentDocumentItemViewModel viewModel = new NewShipmentDocumentItemViewModel()
            {
                PackingReceiptCode  = "PackingReceiptCode",
                PackingReceiptId    = 1,
                PackingReceiptItems = packingReceiptItems,
                ReferenceNo         = "ReferenceNo",
                ReferenceType       = "ReferenceType"
            };

            Assert.Equal("PackingReceiptCode", viewModel.PackingReceiptCode);
            Assert.Equal(1, viewModel.PackingReceiptId);
            Assert.Equal(packingReceiptItems, viewModel.PackingReceiptItems);
            Assert.Equal("ReferenceNo", viewModel.ReferenceNo);
            Assert.Equal("ReferenceType", viewModel.ReferenceType);
        }
        public void validate_Throws_NotImplementedException()
        {
            NewShipmentDocumentItemViewModel viewModel = new NewShipmentDocumentItemViewModel();

            Assert.Throws <NotImplementedException>(() => viewModel.Validate(null));
        }