public void MembershipByTeam() { var mockDb = new MockDatabase(); DoubleDb(mockDb); MembershipController controller = new MembershipController(mockDb); var result = controller.ByTeam(1) as OkNegotiatedContentResult <List <Membership> >; Assert.IsNotNull(result); Assert.IsTrue(result.Content.Select(a => a.AccountId).Contains(1)); Assert.IsTrue(result.Content.Select(a => a.AccountId).Contains(2)); }