public void Validate_DefaultValue()
        {
            InventoryWeavingDocumentOutViewModel viewModel = ViewModel;
            var result = viewModel.Validate(null);

            Assert.NotEmpty(result.ToList());
        }
        public void Validate_ADJOUT_Detail_AllQty_Null()
        {
            InventoryWeavingDocumentOutViewModel viewModel = ViewModel;

            viewModel.date    = DateTimeOffset.Now;
            viewModel.bonType = "ADJ KELUAR";
            foreach (var item in viewModel.items)
            {
                foreach (var detail in item.ListItems)
                {
                    detail.IsSave = true;
                }
            }

            var result = viewModel.Validate(null);

            Assert.NotEmpty(result.ToList());
        }
        public void Validate_ADJIN_Detail_Min()
        {
            InventoryWeavingDocumentOutViewModel viewModel = ViewModel;

            viewModel.date    = DateTimeOffset.Now;
            viewModel.bonType = "ADJ MASUK";
            foreach (var item in viewModel.items)
            {
                foreach (var detail in item.ListItems)
                {
                    detail.Qty      = -1;
                    detail.QtyPiece = -1;
                    detail.IsSave   = true;
                }
            }

            var result = viewModel.Validate(null);

            Assert.NotEmpty(result.ToList());
        }