public async Task TestReturnAllInvestments() { InvestmentsController investmentsController = new InvestmentsController(LoadSampleDatabaseAndReturnContext()); var result = await investmentsController.GetInvestments(); //The result should be json and not null; Assert.IsNotNull(result); }