An example for testing OData v4 Web API controllers in a full-stack manner using the OWIN self-host.
- Read blog post: link here
- Clone with VS2015
- Build
- Run Update-Database in the Package Manager Console to generate DB and seed with data.
- Run Tests
- Start with Ctrl-F5 and query with Postman
If you want to re-generate the OData client from the T4 template, you need to have the "OData v4 Client Code Generator" installed in Visual Studio. The VSIX is found here.
- Visual Studio 2015
- SQL Server Express 2014 or LocalDB
- NuGet 3.x
- Optional: OData v4 Client Code Generator
- IIS Express (to run the site outside of the OWIN self-host)