Пример #1
0
        public void validate_default()
        {
            ReturToQCItemViewModel viewModel = new ReturToQCItemViewModel()
            {
                ProductionOrder = null,
                Details         = new List <ReturToQCItemDetailViewModel>()
                {
                }
            };
            var result = viewModel.Validate(null);

            Assert.True(0 < result.Count());
        }
Пример #2
0
        public void validate_ProductionOrder()
        {
            ReturToQCItemViewModel viewModel = new ReturToQCItemViewModel()
            {
                ProductionOrder = new ProductionOrderIntegrationViewModel()
                {
                    Id = 0,
                },
                Details = new List <ReturToQCItemDetailViewModel>()
                {
                    new ReturToQCItemDetailViewModel()
                    {
                        QuantityBefore = 1,
                        ReturQuantity  = 0
                    }
                }
            };
            var result = viewModel.Validate(null);

            Assert.True(0 < result.Count());
        }