private void RoleTestSelects() { List <Role> roleActual = dictionaryStorage.RoleGetAll().Result; for (int i = 0; i < listRole.Count; i++) { Assert.Contains(listRole[i], roleActual); } Role actualRole = dictionaryStorage.RoleGetByID((int)listRole[0].Id).Result; Assert.AreEqual(listRole[0], actualRole); }
public async Task <ActionResult <List <Role> > > RoleGetAll() { List <Role> roles = await dictionaryStorage.RoleGetAll(); return(Ok(RoleMapper.ToOutputModels(roles))); }