Esempio n. 1
0
 public BusinessController(IBusinessService businessService, IBusinessMenuService businessMenuService, IUserService userService, IMessageHistoryService messageHistoryService)
 {
     this.businessService = businessService;
     this.businessMenuService = businessMenuService;
     this.userService = userService;
     this.messageHistoryService = messageHistoryService;
 }
Esempio n. 2
0
 public TcpServer(string address, int port, bool keepAlive, IBusinessService service)
 {
     _address = address;
     _port = port;
     _keepAlive = keepAlive;
     _service = service;
 }
Esempio n. 3
0
 private void SeedFood(IBusinessService businessService)
 {
     var chicken = new Food
     {
         Name = "Chicken1",
         Calories = 120,
         ServingSize = 4
     };
     var eggs = new Food
     {
         Name = "Eggs1",
         Calories = 70,
         ServingSize = 1
     };
     var apple = new Food
     {
         Name = "Apple1",
         Calories = 40,
         ServingSize = 1
     };
     var almonds = new Food
     {
         Name = "Almonds1",
         Calories = 100,
         ServingSize = 1
     };
     businessService.AddFood(chicken, eggs, apple, almonds);
 }
Esempio n. 4
0
 public FactualService()
 {
     this.category_ZipCodeService = new Category_ZipCodeService();
     this.businessService = new BusinessService();
     this.zipcodeService = new ZipCodeService();
     this.businessCategoryService = new BusinessCategoryService();
 }
		public DataNavigationViewModel(IBusinessService businessService, IEventAggregator eventAggregator,
		                               IAppResourceService resourceService)
		{
			_businessService = businessService;
			_eventAggregator = eventAggregator;
			_resourceService = resourceService;
		    _eventAggregator.GetEvent<DataNavRefresh>().Subscribe(OnDataNavRefresh);
		}
		public ViewModel2(IEventAggregator eventAggregator, IBusinessService businessService,
		                  IMessageBoxService messageBoxService)
		{
			_eventAggregator = eventAggregator;
		    _businessService = businessService;
			_messageBoxService = messageBoxService;
			
			VmTitle = Names.View2;
		}
		// TODO: Declare Property for the current business object to handle
		
		#region --> Sample Code: CurrentContact
		
		//private IContactBus _currentContact;
		//public IContactBus CurrentContact
		//{
		//	get { return _currentContact; }
		//	set
		//	{ 
		//		if(_currentContact != value)
		//		{
		//			_currentContact = value;
		//			RaisePropertyChanged(() => CurrentContact);
		//		}
		//	}	
		//}
		
		#endregion
		
		
		// TODO: Declare additional Properties for data you need
		
		#region --> Sample Code: Accounts

		//private ObservableCollection<IAccount> _accounts;
		//public ObservableCollection<IAccount> Accounts
		//{
		//	get { return _accounts; }
		//	set
		//	{ 
		//		if(_accounts != value)
		//		{
		//			_accounts = value;
		//			RaisePropertyChanged(() => Accounts);
		//		}
		//	}	
		//}

		#endregion
		
		#endregion ------------------------------------------------------------
		
		
		#region ----- .ctor ---------------------------------------------------
		
		public ViewModel1(IEventAggregator eventAggregator, IRegionManager regionManager, IBusinessService businessService,
		                  IMessageBoxService messageBoxService)
		{
			_eventAggregator = eventAggregator;
			_regionManager = regionManager;
			_businessService = businessService;
			_messageBoxService = messageBoxService;
			
			VmTitle = Names.View1;
		}
Esempio n. 8
0
 public AdminController(IMembershipPackageService membershipPackageService, IPackageItemService packageItemService, IBusinessCategoryService businessCategoryService, IZipCodeService zipcodeService,
     ICategory_ZipCodeService category_ZipCodeService, IUserService userService, IBusinessService businessService)
 {
     this.membershipPackageService = membershipPackageService;
     this.packageItemService = packageItemService;
     this.businessCategoryService = businessCategoryService;
     this.zipcodeService = zipcodeService;
     this.category_ZipCodeService = category_ZipCodeService;
     this.userService = userService;
     this.businessService = businessService;
 }
		public BackstageExitViewModel(IDataService DataService, 
		                         	IBusinessService BusinessService,
		                         	IAppResourceService AppResourceService, 
		                         	IMessageBoxService MessageBoxService)
		{
			_dataService = DataService;
			_businessService = BusinessService;
			_appResourceService = AppResourceService;
			_messageBoxService = MessageBoxService;

			
			// DataService-Test:
			// var list = _dataService.Repo.Query<Address>();
			
			VmTitle = "Exit";
			VmImage = _appResourceService.GetPng32("door_open");
		}
		public FileMenuViewModel(IDataService DataService, 
		                         IBusinessService BusinessService,
		                         IAppResourceService AppResourceService, 
		                         IMessageBoxService MessageBoxService)
		{
			_dataService = DataService;
			_businessService = BusinessService;
			_appResourceService = AppResourceService;
			_messageBoxService = MessageBoxService;

			
			// DataService-Test:
			// var list = _dataService.Repo.Query<Address>();
			
			NavExit = new NavigationItem {
											  Caption = "Exit"
										      , ItemImage = _appResourceService.GetPng16("door-open-out")
										 };
		}
Esempio n. 11
0
 public HomeController(IBusinessClosedReportService businessClosedReportService, IBusinessService businessService)
 {
     this.businessClosedReportService = businessClosedReportService;
     this.businessService = businessService;
 }
Esempio n. 12
0
 public DataController(IBusinessService service, IOptions<Options> options)
 {
     this.service = service;
     this.options = options;
 }
Esempio n. 13
0
 public FactualService(ICategory_ZipCodeService category_ZipCodeService, IBusinessService businessService)
 {
     this.category_ZipCodeService = category_ZipCodeService;
     this.businessService = businessService;
 }
Esempio n. 14
0
 public BusinessCommentController(IBusinessService businessService, IBusinessCommentService businessCommmentService, IUserService userService)
 {
     this.businessService = businessService;
     this.businessCommmentService = businessCommmentService;
     this.userService = userService;
 }
 public BusinessesController(IBusinessService businessService)
 {
     this._businessService = businessService;
 }
 public GetTopFiveMoviesForAllUserHandler(IBusinessService businessService)
 {
     this.businessService = businessService;
 }
 public TopStocksViewComponent(IBusinessService businessService)
 {
     _businessService = businessService;
 }
 public StatusDirectoryForm(IBusinessService server) : base(server)
 {
     InitializeComponent();
     RefreshData();
 }
Esempio n. 19
0
 public void TestSetup()
 {
     _loggerService   = Substitute.For <ILoggerService>();
     _dataContext     = Substitute.For <IDataContext>();
     _businessService = new BusinessService(_dataContext, _loggerService);
 }
Esempio n. 20
0
 public FacebookController(IConversationService conversationService, ILoggingService logService, IFacebookService facebookService, INodeService nodeService, IBusinessService businessService, IThreadService threadService, IFacebookCommentService fbCommentService, IFacebookConversationService fbConversationService, IChannelService channelService, IMessageService messageService, IOptions <AppSettings> appSettings)
 {
     _conversationService   = conversationService;
     _fbConversationService = fbConversationService;
     _fbCommentService      = fbCommentService;
     _facebookService       = facebookService;
     _nodeService           = nodeService;
     _channelService        = channelService;
     _messageService        = messageService;
     _threadService         = threadService;
     _businessService       = businessService;
     _logService            = logService;
     _appSettings           = appSettings.Value;
 }
 public AuthenticationService(IBusinessService <UserBusinessObject> usersBusinessService)
 {
     this.usersBusinessService = usersBusinessService;
 }
Esempio n. 22
0
 public AuthorizationService(IBusinessService <UserRoleBusinessObject> usersRolesBusinessService)
 {
     this.usersRolesBusinessService = usersRolesBusinessService;
 }
Esempio n. 23
0
 /// <summary>
 /// Public constructor to initialize businessLayer service instance
 /// </summary>
 /// <param name="businessLayer"></param>
 public PatientsController(IBusinessService businessLayer)
 {
     _businessLayer = businessLayer;
 }
Esempio n. 24
0
 public void Setup()
 {
     _apiService      = A.Fake <IApiService>();
     _apiConfig       = A.Fake <IOptionsSnapshot <APIConfiguration> >();
     _businessService = new BusinessService(_apiService, _apiConfig);
 }
Esempio n. 25
0
 public ValuesController(IBusinessService businessLayer, EfBusinessLayer efBusinessLayer)
 {
     _businessLayer = businessLayer;
     _efBusinessLayer = efBusinessLayer;
 }
Esempio n. 26
0
 public ProgramController(IBusinessService service)
 {
     _service = service;
 }
Esempio n. 27
0
 public BusinessController(IBusinessService businessService, IMapper mapper, JWTProvider jwtProvider)
 {
     _businessService = businessService;
     _mapper          = mapper;
     _jwtProvider     = jwtProvider;
 }
Esempio n. 28
0
 public AccountController()
 {
     _businessService = new BusinessService();
     _emailService    = new EmailService();
 }
Esempio n. 29
0
 public DefinitionController(ILogger <DefinitionController> logger, IBusinessService businessService)
 {
     _logger          = logger;
     _businessService = businessService;
 }
 public PackagePlanController(UserManager <ApplicationUser> userManager, IPackagePlanService packagePlanService, IBusinessService _businessService) : base(userManager, _businessService)
 {
     this.packagePlanService = packagePlanService;
     businessService         = _businessService;
 }
Esempio n. 31
0
 public HomeController(IBusinessService businessService)
 {
     _businessService = businessService;
 }
Esempio n. 32
0
 public ImagesController(IBusinessService businessService, IImageService imageService)
 {
     this.businessService = businessService;
     this.imageService = imageService;
 }
Esempio n. 33
0
 public EmployerService(EmplomaniaAdminDBContext db, IBusinessService bs, IUserService us) : base(db)
 {
     this.bs = bs;
     this.us = us;
 }
Esempio n. 34
0
 public SiteController(UserManager <ApplicationUser> userManager, ISiteService siteService, IBusinessService _businessService) : base(userManager, _businessService)
 {
     this.siteService = siteService;
     businessService  = _businessService;
 }
Esempio n. 35
0
 public BaseController(UserManager <ApplicationUser> userManager, IBusinessService _businessService)
 {
     _userManager    = userManager;
     businessService = _businessService;
 }
		public DataNavigationViewModel(IBusinessService businessService, IEventAggregator eventAggregator)
		{
			_businessService = businessService;
			_eventAggregator = eventAggregator;
		    _eventAggregator.GetEvent<DataNavRefresh>().Subscribe(OnDataNavRefresh);
		    
		    // TODO: Subscribe to any other Event you need to handle here
		}
Esempio n. 37
0
 public SheetsController(ILogger <SheetsController> logger, IBusinessService service)
 {
     this._logger  = logger;
     this._service = service;
 }
 public SomeAnotherClass(IBusinessService businessService)
 {
     _businessService = businessService;
 }
 public ProductController(IBusinessService businessService)
 {
     _businessService = businessService;
 }
Esempio n. 40
0
 public CustomersController(IBusinessService businessService, ILogger <CustomersController> logger)
 {
     _businessService = businessService;
     _logger          = logger;
 }
Esempio n. 41
0
 public BusinessController(IBusinessService BusinessService)
 {
     this._businessService = BusinessService;
 }
Esempio n. 42
0
 public ThreadController(IThreadService threadService, IFacebookConversationService facebookConversationService, ICustomerService customerService, IConversationService conversationService, IBusinessService businessService, IAgentService agentService, IMessageService messageService, IFacebookService facebookService, IChannelService channelService, IOptions <AppSettings> appSettings, ILoggingService logService)
 {
     _threadService               = threadService;
     _messageService              = messageService;
     _appSettings                 = appSettings;
     _channelService              = channelService;
     _facebookService             = facebookService;
     _agentService                = agentService;
     _businessService             = businessService;
     _conversationService         = conversationService;
     _customerService             = customerService;
     _facebookConversationService = facebookConversationService;
     _logService = logService;
 }
Esempio n. 43
0
 public StatusGetter(IBusinessService server) : base(server)
 {
 }
Esempio n. 44
0
 public ValuesController(IBusinessService businessLayer, ILogger<ValuesController> logger)
 {
     _businessLayer = businessLayer;
     _logger = logger;
 }
Esempio n. 45
0
 public MessageController()
 {
     _bllService = new TwitterService();
 }
Esempio n. 46
0
 protected override void Establish_context()
 {
     base.Establish_context();
     _businessService = new BusinessService();
 }
Esempio n. 47
0
 public QuantityConditionLoader(IDataRepository <QuantityCondition> dataRepository, IBusinessService businessService)
     : base(dataRepository, businessService)
 {
 }
Esempio n. 48
0
 public HomeController(IBusinessService service)
 {
     this.service = service;
 }
 public AuthorizationManager(IBusinessService server) : base(server)
 {
 }
Esempio n. 50
0
 private void SeedMeal(IBusinessService businessService)
 {
     var currentDate = businessService.GetMostRecentDay();
     var meal = new MealModel
     {
         Date = currentDate.Date,
         MealNumber = 1,
         MealEntries = new List<MealEntry> {
             new MealEntry
             {
                 MealEntryNumber = 0,
                 Calories = 120,
                 Food= businessService.GetFoodByName("chicken")
             },
             new MealEntry
             {
                 MealEntryNumber = 1,
                 Calories = 184,
                 Food= businessService.GetFoodByName("eggs")
             }}
     };
     businessService.AddMeal(meal);
     meal.MealNumber = 2;
     meal.MealEntries.FirstOrDefault().Id = 0;
     meal.MealEntries.LastOrDefault().Id = 0;
     businessService.AddMeal(meal);
 }
 public TransferencesController(IConfiguration _configuration)
 {
     businessService = new BusinessService(_configuration);
 }
Esempio n. 52
0
 public MessageController(IBusinessService service)
 {
     _bllService = service;
 }
 public CustomerController(IBusinessService <ICustomerQuery> customerService)
 {
     _customerService = customerService;
 }