Beispiel #1
0
 public IHttpActionResult GetRoles()
 {
     return(Ok(_bll.GetRoles()));
 }
        public void TestGetRoles()
        {
            var result = bll.GetRoles();

            Assert.AreEqual("Test Role", result.FirstOrDefault(role => role.RoleId == 1).Name);
        }