I'm going through a Lynda training course on Azure APIs. The instructor is doing some unit tests using MSTest. I've followed his code, but am getting the following error:
Test Name: CustomerGetAllTest Test FullName: H_Plus_Sports.Tests.CustomerIntegrationTests.CustomerGetAllTest Test Source: I:\ScratchSrc\H_Plus_Sports\H_Plus_Sports.Tests\CustomerIntegrationTests.cs : line 21 Test Outcome: Failed Test Duration: 0:00:00.2810103
Result StackTrace: at H_Plus_Sports.Startup.ConfigureServices(IServiceCollection services) --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services) at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices() at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize() at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() at Microsoft.AspNetCore.TestHost.TestServer..ctor(IWebHostBuilder builder, IFeatureCollection featureCollection) at H_Plus_Sports.Tests.CustomerIntegrationTests..ctor() in I:\ScratchSrc\H_Plus_Sports\H_Plus_Sports.Tests\CustomerIntegrationTests.cs:line 16 Result Message: Unable to create instance of class H_Plus_Sports.Tests.CustomerIntegrationTests. Error: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified..
I don't understand why I'm getting the complaint about MSTest not being able to find the Microsoft.AspNetCode.Mvc file.