Пример #1
0
        public void Validate_DefaultValue()
        {
            GarmentShippingDebitNoteViewModel viewModel = new GarmentShippingDebitNoteViewModel();

            var result = viewModel.Validate(null);

            Assert.NotEmpty(result.ToList());
        }
Пример #2
0
        public void Validate_ItemsDefaultValue()
        {
            GarmentShippingDebitNoteViewModel viewModel = new GarmentShippingDebitNoteViewModel();

            viewModel.items = new List <GarmentShippingNoteItemViewModel>
            {
                new GarmentShippingNoteItemViewModel()
            };

            var result = viewModel.Validate(null);

            Assert.NotEmpty(result.ToList());
        }
Пример #3
0
        public void Validate_EmptyValue()
        {
            GarmentShippingDebitNoteViewModel viewModel = new GarmentShippingDebitNoteViewModel
            {
                date  = DateTimeOffset.MinValue,
                buyer = new Buyer {
                    Id = 0
                }
            };

            var result = viewModel.Validate(null);

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