public async Task Put_ApplicationDoesNotExist_NotFoundObjectResult() { // Arrange JobApplication jobApplication = _expectedjobApplications.First(); string companyName = jobApplication.CompanyName; // Act IActionResult result = await _jobApplicationsController.Put(companyName, jobApplication).ConfigureAwait(false); // Assert Assert.IsType <NotFoundObjectResult>(result); var notFoundResult = (NotFoundObjectResult)result; Assert.Equal($"Company with Name \"{companyName}\" was not found", notFoundResult.Value); }