Beispiel #1
0
        public IHttpActionResult GetRolesForConferenceAndAccount(int conferenceId, int accountId)
        {
            var roles = _bll.GetRolesForConferenceAndAccount(conferenceId, accountId);

            if (roles == null)
            {
                return(BadRequest());
            }
            return(Ok(roles));
        }
        public void TestGetRolesForConferenceAndAccount()
        {
            var result = bll.GetRolesForConferenceAndAccount(1, 1);

            Assert.AreEqual(1, result.FirstOrDefault().RoleId);
        }