public async Task GetRoleByNameTest(string name) { var created = await _roleBusiness.CreateRole(new Role { Name = name, Description = name, Permissions = new List <Permission>() }); Assert.NotNull(created); var results = await _roleBusiness.GetRoleByName(created.Name); Assert.NotNull(results); Assert.Equal(results.Name, name); }