public async Task DeleteUsersSampleSetsAsync_ShouldReturnUsersSampleSets2BDeleted() { //arrange int id = 1; ProjectDBContext projectDBContext = new ProjectDBContext(options); ProjectRepoDB projectRepoDB = new ProjectRepoDB(projectDBContext); var usersSampleSets2BDeleted = projectDBContext.UsersSampleSets.Where(i => i.Id == id).FirstOrDefault(); //act var result = await projectRepoDB.DeleteUsersSampleSetsAsync(usersSampleSets2BDeleted); //assert Assert.Equal(1, result.UserId); }