예제 #1
0
        public void Should_Success_Validate_Null_Invoice_Data()
        {
            GarmentFinanceMemorialViewModel vm = new GarmentFinanceMemorialViewModel();

            vm.Items = new List <GarmentFinanceMemorialItemViewModel>
            {
                new GarmentFinanceMemorialItemViewModel()
                {
                    COA    = null,
                    Debit  = 0,
                    Credit = 1
                }
            };

            Assert.True(vm.Validate(null).Count() > 0);
        }
예제 #2
0
        public void Should_Success_Validate_All_Null_Data()
        {
            GarmentFinanceMemorialViewModel vm = new GarmentFinanceMemorialViewModel();

            Assert.True(vm.Validate(null).Count() > 0);
        }