public void Validate_DefaultValue() { GarmentShippingCreditNoteViewModel viewModel = new GarmentShippingCreditNoteViewModel(); var result = viewModel.Validate(null); Assert.NotEmpty(result.ToList()); }
public void Validate_ItemsDefaultValue() { GarmentShippingCreditNoteViewModel viewModel = new GarmentShippingCreditNoteViewModel(); viewModel.items = new List <GarmentShippingNoteItemViewModel> { new GarmentShippingNoteItemViewModel() }; var result = viewModel.Validate(null); Assert.NotEmpty(result.ToList()); }
public void Validate_EmptyValue() { GarmentShippingCreditNoteViewModel viewModel = new GarmentShippingCreditNoteViewModel { date = DateTimeOffset.MinValue, buyer = new Buyer { Id = 0 } }; var result = viewModel.Validate(null); Assert.NotEmpty(result.ToList()); }