public void DoesExistMemberOfProject_ReturnsFalseIfMemberDoesNotExist() { var context = GetContext(); try { ProjectUserRepository repo = new ProjectUserRepository(context); var doesExist = repo.DoesExistMemberOfProject("421cb65f-a76d-4a73-8a1a-d792f37ef992", 123).Result; Assert.False(doesExist); } finally { context.Database.EnsureDeleted(); context.Dispose(); } }