public async Task CheckChangeAdmingeAsync(string newInCharge, string areaId, string possibleroleid) { Account newAccount = await accountProvider.GetById(newInCharge); Area area = await areaProvider.GetByIdAsync(areaId); PossibleRole possibleRole = await possibleRoleProvider.GetByIdAsync(possibleroleid); Role newRole = new Role { Context = area, Account = newAccount, DefaultRole = possibleRole }; var changed = await roleProvider.ChangeInChargeAccountsAsync(newRole); Assert.IsType <Role>(changed); Assert.True(await roleProvider.RemoveRoleCreated(changed.Id)); Assert.True(await roleProvider.ReviveRoleDeleted("139")); }