Ejemplo n.º 1
0
        public void MembershipByAccount()
        {
            var mockDb = new MockDatabase();

            DoubleDb(mockDb);

            MembershipController controller = new MembershipController(mockDb);

            var result = controller.ByAccount(1) as OkNegotiatedContentResult <List <Membership> >;

            Assert.IsNotNull(result);

            Assert.IsTrue(result.Content.Select(t => t.TeamId).Contains(1));
        }