Closed joshuacrew closed 4 years ago
I haven't really used ASP TetsServer thingy... but from an error message you get - wouldn't .Configure(Action<IApplicationBuilder> (appConfig >> ignore))
help?
That worked great! Thank you very much for having a look at my issue. Now to learn about the function composition operator....
I was wondering if there is a defined way for integration testing saturn applications?
I have been trying to use
TestServer()
to test my application routes, but this involves setting upWebHostBuilder()
in the conventional ASP.NET Core way which doesn't seem to work well for Saturn apps.My Program:
My test :
This gives the error:
Type mismatch. Expecting a 'IApplicationBuilder -> unit' but given a 'IApplicationBuilder -> IApplicationBuilder'
on theConfigure()
method.How can I solve this problem without reimplementing my
appConfig
in the test project?Apologies if this question has a very obvious answer but I am very new to Saturn.