public async Task Create_ReturnsNewlyCreatedJobLogs() { // Arrange GetInjections(); var batchcontroller = new JobController(_JobControllerLogger, _JobManagementService); // Act var actionresult = await batchcontroller.Entertask(new Job() { Description = "foo", JobProperty1 = "bar" }); // Assert OkObjectResult oresult = Assert.IsType <OkObjectResult>(actionresult.Result); JobLog trans = Assert.IsType <JobLog>(oresult.Value); Assert.NotEqual(Guid.Empty, trans.JobId); }