public void Validate_DefaultValue() { GarmentShippingLocalReturnNoteViewModel viewModel = new GarmentShippingLocalReturnNoteViewModel(); var result = viewModel.Validate(null); Assert.NotEmpty(result.ToList()); }
public void Validate_ItemsDefaultValue() { GarmentShippingLocalReturnNoteViewModel viewModel = new GarmentShippingLocalReturnNoteViewModel(); viewModel.items = new List <GarmentShippingLocalReturnNoteItemViewModel> { new GarmentShippingLocalReturnNoteItemViewModel() { isChecked = true } }; var result = viewModel.Validate(null); Assert.NotEmpty(result.ToList()); }