Пример #1
0
 public UploadService(IConfiguration config, IAdmin admin, PortfolioDbContext context, IArtAdmin art)
 {
     Configuration = config;
     _admin        = admin;
     _context      = context;
     _artAdmin     = art;
 }
 public VolunteerController(IDisaster disasterSvc, ICluster clusterSvc, IAdmin adminSvc, IMessageService messageSvc)
 {
     _disasterSvc = disasterSvc;
     _clusterSvc = clusterSvc;
     _adminSvc = adminSvc;
     _messageSvc = messageSvc;
 }
Пример #3
0
        public AdminController()
        {
            IKernel ninjectKernel = new StandardKernel();

            ninjectKernel.Bind <IAdmin>().To <Admins>();
            repo = ninjectKernel.Get <IAdmin>();
        }
Пример #4
0
 /// <summary>
 /// Returns a list of refreshables for the organization within a capacity
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API or
 /// authenticate via service principal. &lt;br/&gt;&lt;br/&gt;**Required
 /// scope**: Tenant.Read.All or Tenant.ReadWrite.All. &lt;br/&gt;Delegated
 /// permissions are supported. &lt;br/&gt;To set the permissions scope, see
 /// [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 /// <param name='filter'>
 /// Filters the results based on a boolean condition
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results. Use with top to fetch results beyond the first
 /// 1000.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Refreshables> GetRefreshablesAsync(this IAdmin operations, int top, string expand = default(string), string filter = default(string), int?skip = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRefreshablesWithHttpMessagesAsync(top, expand, filter, skip, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #5
0
 public ScottFalboCodeModel(IAdmin admin, IUploadService upload, PortfolioDbContext context, IArtAdmin art)
 {
     _admin   = admin;
     _upload  = upload;
     _context = context;
     _art     = art;
 }
 public VolunteerController(IDisaster disasterSvc, ICluster clusterSvc, IAdmin adminSvc, IMessageService messageSvc)
 {
     _disasterSvc = disasterSvc;
     _clusterSvc  = clusterSvc;
     _adminSvc    = adminSvc;
     _messageSvc  = messageSvc;
 }
Пример #7
0
        private void buttonstart_Click(object sender, EventArgs e)
        {
            if (comboBoxuser.SelectedValue.Equals(textBoxpassword.Text))
            {
                User        u    = (User)comboBoxuser.SelectedItem;
                Departament d    = new Departament();
                IUserType   tipo = new IEmploye();


                if (u.idDepartamento == 2)
                {
                    tipo = new IAdmin();
                    //this.Hide();
                }
                else if (u.idDepartamento == 3)
                {
                    tipo = new IVigilant();
                }
                else
                {
                    tipo = new IEmploye();
                }

                tipo.UserType();
            }
            else
            {
                MessageBox.Show("¡Contraseña incorrecta!", "CellphoneStore",
                                MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Пример #8
0
 /// <summary>
 /// Returns the encryption keys for the tenant.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <TenantKeys> GetPowerBIEncryptionKeysAsync(this IAdmin operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetPowerBIEncryptionKeysWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #9
0
 /// <summary>
 /// Returns a list of capacities for the organization.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Capacities> GetCapacitiesAsAdminAsync(this IAdmin operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetCapacitiesAsAdminWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #10
0
 /// <summary>
 /// Returns a list of audit activity events for a tenant.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;This API allows 200 requests per hour at maximum.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All. &lt;br/&gt;To call this API, provide either a
 /// continuation token or both a start and end date time. StartDateTime and
 /// EndDateTime must be in the same UTC day.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='startDateTime'>
 /// Start date and time of the window for audit event results. Must be in ISO
 /// 8601 compliant UTC format.
 /// </param>
 /// <param name='endDateTime'>
 /// End date and time of the window for audit event results. Must be in ISO
 /// 8601 compliant UTC format.
 /// </param>
 /// <param name='continuationToken'>
 /// Token required to get the next chunk of the result set
 /// </param>
 /// <param name='filter'>
 /// Filters the results based on a boolean condition, using 'Activity',
 /// 'UserId', or both properties. Supports only 'eq' and 'and' operators.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ActivityEventResponse> GetActivityEventsAsync(this IAdmin operations, string startDateTime = default(string), string endDateTime = default(string), string continuationToken = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetActivityEventsWithHttpMessagesAsync(startDateTime, endDateTime, continuationToken, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #11
0
 /// <summary>
 /// Returns the specified refreshable for the specified capacity the user has
 /// access to
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API or
 /// authenticate via service principal. &lt;br/&gt;&lt;br/&gt;**Required
 /// scope**: Tenant.Read.All or Tenant.ReadWrite.All. &lt;br/&gt;Delegated
 /// permissions are supported. &lt;br/&gt;To set the permissions scope, see
 /// [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='capacityId'>
 /// The capacity id
 /// </param>
 /// <param name='refreshableId'>
 /// The refreshable id
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Refreshables> GetRefreshableForCapacityAsync(this IAdmin operations, System.Guid capacityId, string refreshableId, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRefreshableForCapacityWithHttpMessagesAsync(capacityId, refreshableId, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #12
0
        public AdminController(IAdmin repository)
        {
            _adminRepository = repository;
            BKICAutomapper automap = new BKICAutomapper();

            _mapper = automap.GetAdminAutoMapper();
        }
Пример #13
0
        private void DoSign()
        {
            string par_username = Server.UrlDecode(Request.QueryString["username"]);
            string par_rndcode  = Server.UrlDecode(Request.QueryString["rnd"]);
            string par_sign     = Server.UrlDecode(Request.QueryString["sign"]);

            if (string.IsNullOrEmpty(par_username) || string.IsNullOrEmpty(par_username) || string.IsNullOrEmpty(par_sign))
            {
                //如果不包含其中的数据,那么直接跳转到集成登录页面
                Response.Redirect(AdminAppSetting.TcAdminLoginPage());
            }

            string md5sign = (par_username + par_rndcode + AdminAppSetting.JumpLoginKey()).MD5();

            if (md5sign == par_sign)  //验证通过
            {
                IAdmin gatewayobj = GetInterface.GetIAdmin();
                CYJH_OrderSystem.Admin.Base.Model.MR_Admin model;
                bool islogin = gatewayobj.LoginByGateWay(par_username, Request.UserHostAddress, out model);
                if (model == null || model.AID <= 0)
                {
                    Response.Write("<br/><a href='" + AdminPageStatic.GetLoginURL() + "'>验证失败!请确定您有访问该系统的权限!</a>");
                    return;
                }
                else
                {
                    AdminPageStatic.SaveUserFormsCookie(model);
                    Response.Write("<script type='text/javascript'>window.setTimeout(function(){location.href='" + AdminPageStatic.GetDefaultURL() + "'}, 2000)</script>");
                    Response.Write("<a href='" + AdminPageStatic.GetDefaultURL() + "'>您已登录成功,如果2秒内没有自动进入系统,请点击这里</a>");

                    return;
                }
            }
            Response.Write(par_username + "<br/>" + par_sign + "<br/>" + par_rndcode + "<br/>" + md5sign);
        }
Пример #14
0
 // Overriden in inherited class
 public virtual void OnRemoved() // called before removing an item from the game
 {
     IsValid = false;
     // TODO: warn IncarnatedBy about removing
     IncarnatedBy?.StopIncarnating();
     IncarnatedBy = null;
 }
Пример #15
0
        public static bool UpdateForumCounts()
        {
            IAdmin dal = Factory <IAdmin> .Create("AdminFunctions");

            dal.UpdateForumCounts();
            return(true);
        }
        // GET: api/ReporteLogin
        public IEnumerable <object> Get()
        {
            IAdmin        builder = WebApiConfig.BuilderService(null);
            List <object> res     = builder.getReporteLogin();

            return(res);
        }
Пример #17
0
        public bool Add(IAdmin admin)
        {
            if (admin == null)
                throw new ArgumentNullException("admin");

            if (AdminCount >= MaxAdmins)
            {
                Log.Default.WriteLine(LogLevels.Warning, "Too many admins");
                return false;
            }

            if (_admins.ContainsValue(admin))
            {
                Log.Default.WriteLine(LogLevels.Warning, "{0} already connected", admin.Name);
                return false;
            }

            if (_admins.ContainsKey(admin.Callback))
            {
                Log.Default.WriteLine(LogLevels.Warning, "{0} already connected", admin.Name);
                return false;
            }

            if (_admins.Any(x => x.Value.Name == admin.Name))
            {
                Log.Default.WriteLine(LogLevels.Warning, "{0} already connected", admin.Name);
                return false;
            }

            //
            _admins.Add(admin.Callback, admin);

            //
            return true;
        }
Пример #18
0
        public void Email(string to, string subject, string body)
        {
            _admin = (IAdmin)context.HttpContext.RequestServices.GetService(typeof(IAdmin));

            Setting setting = _admin.GetSetting();

            using (var message = new MailMessage())
            {
                message.To.Add(new MailAddress(to, "فروشگاه آنلاین"));
                message.From = new MailAddress(setting.MailAddress, "فروشگاه آنلاین");

                message.Subject    = subject;
                message.Body       = body;
                message.IsBodyHtml = true;

                using (var client = new SmtpClient("smtp.gmail.com"))
                {
                    client.UseDefaultCredentials = false;
                    client.Port        = 587;
                    client.Credentials = new NetworkCredential(setting.MailAddress, setting.MailPassword);
                    client.EnableSsl   = true;
                    client.Send(message);
                }
            }
        }
Пример #19
0
 /// <summary>
 /// Adds an encryption key for Power BI workspaces assigned to a capacity.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;This API allows 600 requests per hour at maximum.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantKeyCreationRequest'>
 /// Tenant key information
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <TenantKey> AddPowerBIEncryptionKeyAsync(this IAdmin operations, TenantKeyCreationRequest tenantKeyCreationRequest, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddPowerBIEncryptionKeyWithHttpMessagesAsync(tenantKeyCreationRequest, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #20
0
 public EditUserHelper(Gtk.Window win, ref DoubleListView dlv, User u)
 {
     this.doubleListView = dlv;
     _adminObj = (IAdmin) RemotingHelper.GetObject(typeof(IAdmin));
     _user = u;
     base.Init(win);
 }
Пример #21
0
 public MotorCalculator()
 {
     _adminRepository           = new Admin();
     _motorInsuranceRepository  = new MotorInsurance();
     _insurancePortalRepository = new InsurancePortal();
     _oracleMotorInsurance      = new OracleDBIntegration.Implementation.MotorInsurance();
     _mail = new Mail();
 }
Пример #22
0
 public BookingModel(IAdmin admin, IEmail email, IUploadService upload, IConfiguration config)
 {
     _admin     = admin;
     _email     = email;
     _upload    = upload;
     _config    = config;
     CaptchaKey = _config["CaptchaKey"];
 }
Пример #23
0
 public AdminController(ApplicationDbContext context, IPost postService, IApplicationUser userService, IAdmin adminService, UserManager <ApplicationUser> userManager)
 {
     _userService  = userService;
     _postService  = postService;
     _adminService = adminService;
     _context      = context;
     _userManager  = userManager;
 }
Пример #24
0
 public HomeController(ILogger <HomeController> logger, IUser user, IClient client, ITicket ticket, IAdmin admin)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _user   = user ?? throw new ArgumentNullException(nameof(user));
     _client = client ?? throw new ArgumentException(nameof(client));
     _ticket = ticket ?? throw new ArgumentNullException(nameof(ticket));
     _admin  = admin ?? throw new ArgumentNullException(nameof(admin));
 }
Пример #25
0
 public AdminController()
 {
     noticiasAdmin       = new MNoticiaBL();
     contactoAct         = new MContactoBL();
     adminActi           = new MAdminBL();
     estudianteActividad = new MEstudianteBL();
     usuariosActividad   = new MUsuarioBL();
 }
        public AdminController(
            IAdmin userService,
            IMapper mapper)

        {
            _userService = userService;
            _mapper      = mapper;
        }
 public HomeCalculator()
 {
     _adminRepository           = new Admin();
     _homeInsuranceRepository   = new HomeInsurance();
     _insurancePortalRepository = new InsurancePortal();
     _oracleHomeInsurance       = new OracleDBIntegration.Implementation.HomeInsurance();
     _mail = new Mail();
 }
Пример #28
0
        public void GetDevotionalMessage(IAdmin admin)
        {
            var devotions = _Schemas.Devotions;

            devotions.Case.OrderBy(devotions.Column(x => x.insert_time), OrderBy.DESC);
            devotions.Case.LimitBy(1);
            admin.DevotionalMessage = devotions.Select.Entity;
        }
Пример #29
0
 public AdminController(
     IAdmin adminProcessor,
     IPickList pickListProcessor,
     ITraceMessage traceMessageProcessor)
 {
     _adminProcessor        = adminProcessor;
     _pickListProcessor     = pickListProcessor;
     _traceMessageProcessor = traceMessageProcessor;
 }
Пример #30
0
 public VolunteerController(IDisaster disasterSvc, ICluster clusterSvc, IAdmin adminSvc, IMessageService messageSvc, IVolunteerService volunteerSvc, IWebSecurityWrapper webSecurity)
 {
     _disasterSvc = disasterSvc;
     _clusterSvc = clusterSvc;
     _adminSvc = adminSvc;
     _messageSvc = messageSvc;
     _volunteerSvc = volunteerSvc;
     _webSecurity = webSecurity;
 }
Пример #31
0
        public void Initialize(IApplicationBuilder app, IRouteBuilder builder)
        {
            _app             = app;
            _mvcRouteBuilder = builder;

            _internalRouteBuilder = new RouteBuilder(app);

            Admin = new Admin(this);
        }
Пример #32
0
 public AdminController(IAdmin authProvider, IPosts blogRepository = null, IFeedback feedbackRepository = null, IUsligi services = null, IPhoto photo = null, ICategories cat = null)
 {
     _blogRepository     = blogRepository;
     _authProvider       = authProvider;
     _feedbackRepository = feedbackRepository;
     _servicesRepository = services;
     _photoRepository    = photo;
     _catRepository      = cat;
 }
Пример #33
0
 public AdminManager()
 {
     _iAdmin = new AdminRepository();
     _iBrand = new BrandRepository();
     _iBranndingIssuesSolved = new BarandingIssueSolvedRepository();
     _iBrandingTeam          = new BrandingTeamRepository();
     _iBrandIssue            = new BrandIssueRepository();
     _iBrandOutlet           = new BrandOutletRepository();
 }
Пример #34
0
        public MainHelper(Gtk.Window win, ref FilteredListView e, 
					ref FilteredListView u, ref FilteredListView g)
        {
            ftreeviewEnterprises = e;
            ftreeviewUsers = u;
            ftreeviewGroups = g;
            _adminObj = (IAdmin) RemotingHelper.GetObject(typeof(IAdmin));
            base.Init(win);
        }
Пример #35
0
 public VolunteerController(IDisaster disasterSvc, ICluster clusterSvc, IAdmin adminSvc, IMessageService messageSvc, IVolunteerService volunteerSvc, IWebSecurityWrapper webSecurity)
 {
     _disasterSvc  = disasterSvc;
     _clusterSvc   = clusterSvc;
     _adminSvc     = adminSvc;
     _messageSvc   = messageSvc;
     _volunteerSvc = volunteerSvc;
     _webSecurity  = webSecurity;
 }
 public OrganizationController(IVolunteerService volunteerService, IOrganizationService organizationService,
     IWebSecurityWrapper webSecurityWrapper, IMessageService messageService, IAdmin adminService, IDisaster disasterService) : base()
 {
     this.VolunteerService = volunteerService;
     this.OrganizationService = organizationService;
     this.WebSecurityWrapper = webSecurityWrapper;
     this.MessageService = messageService;
     this.AdminService = adminService;
     this.DisasterService = disasterService;
 }
        public void SetUp()
        {
            _logIn = Substitute.For<ILogIn>();
            _autocomplete = Substitute.For<IAutocomplete>();
            _storemanager = Substitute.For<IStoremanager>();
            _admin = Substitute.For<IAdmin>();
            _databaseFunctions = Substitute.For<IDatabaseFunctions>();

            _databaseFunctions.ConnectToDb().Returns(true);
            _uut = new LogInViewModel(_autocomplete, _logIn, _databaseFunctions, _storemanager, _admin);
        }
Пример #38
0
        /// <summary>
        ///     AdminViewModel constructor takes a UnitOfWork to give to each of its user controls view models  and add them to a
        ///     list.
        /// </summary>
        public AdminViewModel(IAdmin admin, IAutocomplete autocomplete)
        {
            // Add available pages
            PageViewModels.Add(new AdminNewStoreModel(admin));
            PageViewModels.Add(new AdminDeleteProductModel());
            PageViewModels.Add(new AdminDeleteStoreModel(admin, autocomplete, new CreateMsgBox()));

            // set startup page
            MainWindowTekst = "Pristjek220 - Administration - Tilføj Forretning";
            _currentPageViewModel = _pageViewModels[0];
        }
Пример #39
0
 public HomeController(
     IDisaster disasterSvc,
     IVolunteerService volunteerSvc,
     IWebSecurityWrapper webSecurity,
     IClusterCoordinatorService clusterCoordinatorService,
     IVolunteerTypeService volunteerTypeService,
     IDisasterClusterService disasterClusterService,
     IAdmin adminService
     )
 {
     _disasterSvc = disasterSvc;
     _volunteerSvc = volunteerSvc;
     _webSecurity = webSecurity;
     _clusterCoordinatorService = clusterCoordinatorService;
     _volunteerTypes = volunteerTypeService;
     _disasterClusterSvc = disasterClusterService;
     _adminService = adminService;
 }
Пример #40
0
 public MessageService(IAdmin adminSvc, IMessageCoordinator msgCoordinatorSvc)
 {
     _msgCoordinatorSvc = msgCoordinatorSvc;
     _adminSvc = adminSvc;
 }
 public void SetUp()
 {
     _admin = Substitute.For<IAdmin>();
     _autocomplete = Substitute.For<IAutocomplete>();
     _uut = new AdminViewModel(_admin, _autocomplete);
 }
Пример #42
0
 public DissController(IDiss<diss> dissRepository, IAdmin<admin> adminRepository)
 {
     _dissRepository = dissRepository;
     _adminRepository = adminRepository;
 }
        public void SetUp()
        {
            _admin = Substitute.For<IAdmin>();
            _uut = new AdminNewStoreModel(_admin);
            _secureString1 = new SecureString();
            _secureString1.AppendChar('a');
            _secureString1.AppendChar('b');
            _secureString1.AppendChar('c');

            _secureString2 = new SecureString();
            _secureString2.AppendChar('c');
            _secureString2.AppendChar('b');
            _secureString2.AppendChar('a');

            _secureString3 = new SecureString();
        }
Пример #44
0
 public MessageService(IAdmin adminSvc)
 {
     _adminSvc = adminSvc;
 }
Пример #45
0
        /// <summary>
        ///     Admin constructor takes a admin and a autocomplete to create an AdminViewModel
        /// </summary>
        /// <param name="admin"></param>
        /// <param name="autocomplete"></param>
        public Admin(IAdmin admin, IAutocomplete autocomplete)
        {
            InitializeComponent();

            DataContext = new AdminViewModel(admin, autocomplete);
        }
Пример #46
0
 //
 // GET: /Admin/Orders/
 public OrdersController(IAdmin adminsvc, ICommon commonsvc)
     : base(adminsvc, commonsvc)
 {
 }
Пример #47
0
 public AskLibController(IAskLib<asklib> repository, IAdmin<admin> adminRepository)
 {
     _adminRepository = adminRepository;
     _askRepository = repository;
 }
Пример #48
0
 public CategoriesController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }
Пример #49
0
 public void AddAdmin(IAdmin added)
 {
     // NOP
 }
Пример #50
0
 public void RemoveAdmin(IAdmin removed)
 {
     // NOP
 }
 /// <summary>
 ///     AdminNewStoreModel constructor takes a UnitOfWork to create an Admin
 /// </summary>
 public AdminNewStoreModel(IAdmin admin)
 {
     _admin = admin;
 }
Пример #52
0
        public bool Remove(IAdmin admin)
        {
            if (admin == null)
                throw new ArgumentNullException("admin");

            bool removed = _admins.Remove(admin.Callback);
            return removed;
        }
Пример #53
0
 public HomeController(IHome<home> repository, IUser<user> userRepository, IAdmin<admin> adminRepository)
 {
     _userRepository = userRepository;
     _homeRepository = repository;
     _adminRepository = adminRepository;            
 }
Пример #54
0
 // GET: /Admin/Settings/
 public SettingsController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }
Пример #55
0
 public HomeController() 
 {
     _homeRepository = new HomeRepository();
     _userRepository = new UserRepository();
     _adminRepository = new AdminRepository();           
 }
Пример #56
0
 public VolunteerController(IDisaster disasterSvc, IAdmin adminSvc)
 {
     _disasterSvc = disasterSvc;
     _adminSvc = adminSvc;
 }
Пример #57
0
 public AskLibController()
 {
     _askRepository = new AskLibRepository();
     _adminRepository = new AdminRepository();
 }
Пример #58
0
 public DissController()
 {
     _dissRepository = new DissRepository();
     _adminRepository = new AdminRepository();
 }
 public void SetUp()
 {
     _admin = Substitute.For<IAdmin>();
     _autocomplete = Substitute.For<IAutocomplete>();
     _msgBox = Substitute.For<ICreateMsgBox>();
     _uut = new AdminDeleteStoreModel(_admin, _autocomplete, _msgBox);
     _store = new Store() {StoreId = 12, StoreName = "Lidl"};
 }
Пример #60
0
 public AdminHomeController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }