public void DeleteJobAsyncTest() { // arrange var jobRepository = new JobRepository(_context); int jobId = 10; // act int previousCount = jobRepository.GetJobsAsync().Result.Count; var job = jobRepository.GetJobByIdAsync(jobId).Result; var deletedJob = jobRepository.DeleteJobAsync(job); int postCount = jobRepository.GetJobsAsync().Result.Count; // assert Assert.Equal(previousCount, postCount + 1); }