public void CanUploadImage_should_throw_exception_if_name_not_valid() { var command = new UploadAppImage(); ValidationAssert.Throws(() => GuardApp.CanUploadImage(command), new ValidationError("File is required.", "File")); }
public void CanUploadImage_should_not_throw_exception_if_app_name_is_valid() { var command = new UploadAppImage { File = new NoopAssetFile() }; GuardApp.CanUploadImage(command); }