NUnit test with Asp net web API
Hello, Im having trouble to setup NUnit tests for the API, as of now it seems Ive managed to start the service and it's running yet whenever i send the data to my endpoint it simply returns a 500 message...
11 Replies
Here is my whole code, I can also share some of my controller code
and basically EtherEntryPoint is the default class for the API
I'm pretty sure you're not supposed to set BaseAddress.
here's an example from the WAF docs
Integration tests in ASP.NET Core
Learn how integration tests ensure that an app's components function correctly at the infrastructure level, including the database, file system, and network.
@Vowzss
also, in the future, do not use screenshots to share your $code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/my bad
IClassFixture is from XUnit right ?
yes, but it shouldn't matter afaik
as in whether you're using xunit or not
atm I just want something that works xD
following the provided exemple
still the same issue with it :/ I have no clue what I am doing wrong
may want to move to #web for this
o yeah thank you! will do