public DeleteConfirmationViewModel DeleteConfirmationForm(string id) { Administrator administrator = _adminDAO.Get(id); DeleteConfirmationViewModel viewModel = new DeleteConfirmationViewModel { Id = administrator.Username, Title = administrator.Username }; return(viewModel); }
public void Get() { Administrator user = administratorDAO.Add(new Administrator("username", "password")); Assert.AreEqual(user, administratorDAO.Get(user.ID)); }