@@ -221,7 +221,6 @@ module SingleRequiredUploadOperation =
221221[<Fact>]
222222let ``Should be able to execute a single required upload`` () =
223223 let file = { Name = " file.txt" ; ContentType = " text/plain" ; Content = " Sample text file contents" }
224- //let upload : Upload =
225224 SingleRequiredUploadOperation.operation.Run( file.MakeUpload())
226225 |> SingleRequiredUploadOperation.validateResult file
227226
@@ -254,12 +253,6 @@ module SingleOptionalUploadOperation =
254253 result.Data.Value.NullableSingleUpload.Value.ContentType |> equals file.ContentType)
255254
256255
257- [<Fact>]
258- let ``Should be able to execute a upload by passing a file with new approach`` () =
259- let file = { Name = " file.txt" ; ContentType = " text/plain" ; Content = " Sample text file contents" }
260- SingleOptionalUploadOperation.operation.Run( file.MakeUpload())
261- |> SingleOptionalUploadOperation.validateResult ( Some file)
262-
263256[<Fact>]
264257let ``Should be able to execute a single optional upload by passing a file`` () =
265258 let file = { Name = " file.txt" ; ContentType = " text/plain" ; Content = " Sample text file contents" }
@@ -278,7 +271,7 @@ let ``Should be able to execute a single optional upload by not passing a file``
278271 SingleOptionalUploadOperation.operation.Run()
279272 |> SingleOptionalUploadOperation.validateResult None
280273
281- // [<Fact>]
274+ [<Fact>]
282275let ``Should be able to execute a single optional upload by not passing a file asynchronously`` () : Task = task {
283276 let! result = SingleOptionalUploadOperation.operation.AsyncRun()
284277 result |> SingleOptionalUploadOperation.validateResult None
@@ -487,7 +480,7 @@ let ``Should be able to upload files inside another input type``() : Task = task
487480 Some [| Some { Name = " multiple4.txt" ; ContentType = " text/plain" ; Content = " Multiple files fourth file content" }; None |] }
488481 let input =
489482 let makeUpload ( x : File ) = x.MakeUpload()
490- UploadRequestOperation.Request( makeUpload request.Single,
483+ UploadRequestOperation.Request( single = makeUpload request.Single,
491484 multiple = Array.map makeUpload request.Multiple,
492485 nullableMultiple = Array.map makeUpload request.NullableMultiple.Value,
493486 nullableMultipleNullable = Array.map ( Option.map makeUpload) request.NullableMultipleNullable.Value)
0 commit comments