public void ApiGetMembership()
        {
            long id               = 1;
            var  membership       = _adminMembership;
            var  acc              = Mock.Of <IMembershipService>(a => a.GetMembership(id) == membership);
            var  uow              = Mock.Of <IUnitOfWork>(u => u.MembershipService == acc);
            var  controller       = new MembershipsController(uow);
            var  response         = controller.GetMembership(id);
            var  result           = response as OkNegotiatedContentResult <MembershipDto>;
            var  resultMembership = result.Content;

            Assert.IsTrue(resultMembership.EqualValues(membership));
        }
        public void ApiGetMembershipByTeamUser()
        {
            long   teamId           = 14;
            string userId           = "abc";
            var    membership       = _memberMembership;
            var    acc              = Mock.Of <IMembershipService>(a => a.GetMembership(teamId, userId) == membership);
            var    uow              = Mock.Of <IUnitOfWork>(u => u.MembershipService == acc);
            var    controller       = new MembershipsController(uow);
            var    response         = controller.GetMembership(userId, teamId);
            var    result           = response as OkNegotiatedContentResult <MembershipDto>;
            var    resultMembership = result.Content;

            Assert.IsTrue(resultMembership.EqualValues(membership));
        }