예제 #1
0
        public DeleteConfirmationViewModel DeleteConfirmationForm(string id)
        {
            Administrator administrator           = _adminDAO.Get(id);
            DeleteConfirmationViewModel viewModel = new DeleteConfirmationViewModel
            {
                Id    = administrator.Username,
                Title = administrator.Username
            };

            return(viewModel);
        }
예제 #2
0
        public void Get()
        {
            Administrator user = administratorDAO.Add(new Administrator("username", "password"));

            Assert.AreEqual(user, administratorDAO.Get(user.ID));
        }