mercredi 31 janvier 2018

Downloading a file using WireMoc

I'm new to WireMoc. How do i go about Downloading a file using WireMoc stubbing framework? This is what i have so far

     var stub = FluentMockServer.Start(new FluentMockServerSettings
        {
            Urls = new[] { "http://+:5001" },
            StartAdminInterface = true
        });

     stub.Given(
                Request.Create()
                    .WithPath("/myFile")
                    .UsingPost()
                    .WithBody("download file"))
            .RespondWith(Response.Create()
                .WithStatusCode(200)
                .WithHeader("Content-Type", "application/multipart")

Aucun commentaire:

Enregistrer un commentaire