public void Get_all_administrators()
        {
            HospitalApp.Controllers.AdministratorController controller = new HospitalApp.Controllers.AdministratorController(SetupRepository(null, null).Object);

            var actionResult = controller.GetAll();

            ConvertToList(actionResult).ShouldBeEquivalentTo(CreateAdministrators());
        }
        public void Get_by_id()
        {
            AdministratorDto myAdmin = CreateAdministrators().Find(a => a.Id == 1);

            HospitalApp.Controllers.AdministratorController controller = new HospitalApp.Controllers.AdministratorController(this.SetupRepository(myAdmin, null).Object);

            var actionResult = controller.GetById(myAdmin.Id);

            ConvertToObject(actionResult).ShouldBeEquivalentTo(myAdmin);
        }
        public void Add_administrator()
        {
            AdministratorDto myAdmin        = CreateAdministrator();
            Administrator    convertedAdmin = AdministratorAdapter.AdministratorDtoToAdministrator(myAdmin);

            HospitalApp.Controllers.AdministratorController controller = new HospitalApp.Controllers.AdministratorController(this.SetupRepository(myAdmin, convertedAdmin).Object);

            var actionResult = controller.Add(convertedAdmin);

            ConvertToObject(actionResult).ShouldBeEquivalentTo(myAdmin);
        }