public PetAlertDataAccess(IDbConnectionFactory dbConnectionFactory, IBaseDataAccess <PetAlertTableModel> petAlertBaseDataAccess)
        {
            if (dbConnectionFactory == null)
            {
                throw new ArgumentNullException(nameof(dbConnectionFactory));
            }

            if (petAlertBaseDataAccess == null)
            {
                throw new ArgumentNullException(nameof(petAlertBaseDataAccess));
            }

            _dbConnectionFactory    = dbConnectionFactory;
            _petAlertBaseDataAccess = petAlertBaseDataAccess;
        }
Esempio n. 2
0
        public OwnerDataAccess(IDbConnectionFactory dbConnectionFactory, IBaseDataAccess <OwnerTableModel> ownerBaseDataAccess)
        {
            if (dbConnectionFactory == null)
            {
                throw new ArgumentNullException(nameof(dbConnectionFactory));
            }

            if (ownerBaseDataAccess == null)
            {
                throw new ArgumentNullException(nameof(ownerBaseDataAccess));
            }

            _dbConnectionFactory = dbConnectionFactory;
            _ownerBaseDataAccess = ownerBaseDataAccess;
        }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 public OperPermissionManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
        private void InitilizeBaseDataAccessWithList(List<MenuItem> menuItems)
        {
            var baseDataAccess_Mock = new Mock<IBaseDataAccess>();

            baseDataAccess_Mock.Setup(b => b.GetMenuItems()).Returns(menuItems);

            _baseDataAccess = baseDataAccess_Mock.Object;
        }
Esempio n. 5
0
 public ExamTestManager()
 {
     Etdb          = new ExamTestDB();
     _dataAccess   = DataAccessProvider.DataAccess;;
     _cacheService = new DefaultCacheService(new RuntimeMemoryCache(), 0.1f);
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RetechWing.BusinessCommon.SystemServices.TenantManager"/> class.
 /// </summary>
 public TenantManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
 public RolePermissionManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Esempio n. 8
0
 public TagManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Esempio n. 9
0
 public MenuController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
 public TalEvalReportTemplateManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
     _mongoBase  = new MongoBaseMethod();
 }
Esempio n. 11
0
 /// <summary>
 ///
 /// </summary>
 public DeptRoleManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Esempio n. 12
0
 /// <summary>
 ///
 /// </summary>
 public DeptAccountManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Esempio n. 13
0
 public CartController(IBaseDataAccess baseDataAccess, IProcessOrderCommand orderProcessor, IAuthProvider authProvider)
 {
     _baseDataAccess = baseDataAccess;
     _orderProcessorCommand = orderProcessor;
     _authProvider = authProvider;
 }
Esempio n. 14
0
 /// <summary>
 ///
 /// </summary>
 public StudentAffairsManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Esempio n. 15
0
 public PostDataAccess(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
Esempio n. 16
0
 public CartController(IBaseDataAccess baseDataAccess, IProcessOrderCommand orderProcessor, IAuthProvider authProvider)
 {
     _baseDataAccess        = baseDataAccess;
     _orderProcessorCommand = orderProcessor;
     _authProvider          = authProvider;
 }
Esempio n. 17
0
 public MenuController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
        private void InitializeMenuItemsInBaseDataAccess()
        {
            var baseDataAccessMock = new Mock<IBaseDataAccess>();
            var sampleMenuItemCategories = new List<MenuItemCategory>()
            {
                new MenuItemCategory() { Description = "CategoryDescription1" , Id = 1, Name = "CategoryName1"},
                new MenuItemCategory() { Description = "CategoryDescription2" , Id = 2, Name = "CategoryName2"},
                new MenuItemCategory() { Description = "CategoryDescription3" , Id = 3, Name = "CategoryName3"},
                new MenuItemCategory() { Description = "CategoryDescription4" , Id = 4, Name = "CategoryName4"}
            };

            var sampleMenuItems = new List<MenuItem>()
            {
                new MenuItem()
                {
                    Category = sampleMenuItemCategories[0],
                    Description = "MenuItemDescription1",
                    Id = 1,
                    Name = "MenuItemName1",
                    Price = new Money() {Amount = 10, Currency = "PLN"}
                },
                new MenuItem()
                {
                    Category = sampleMenuItemCategories[1],
                    Description = "MenuItemDescription2",
                    Id = 2,
                    Name = "MenuItemName2",
                    Price = new Money() {Amount = 20, Currency = "PLN"}
                },
                new MenuItem()
                {
                    Category = sampleMenuItemCategories[2],
                    Description = "MenuItemDescription3",
                    Id = 3,
                    Name = "MenuItemName3",
                    Price = new Money() {Amount = 30, Currency = "PLN"}
                },
            };

            baseDataAccessMock.Setup(b => b.GetMenuItems()).Returns(sampleMenuItems);

            _baseDataAccess = baseDataAccessMock.Object;
        }
Esempio n. 19
0
 public NavController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
Esempio n. 20
0
 /// <summary>
 ///
 /// </summary>
 public RoleManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
        private void InitializeBaseDataAccessWithNoItem()
        {
            var baseDataAccessMock = new Mock<IBaseDataAccess>();
            baseDataAccessMock.Setup(b => b.GetMenuItems()).Returns(new List<MenuItem>());

            _baseDataAccess = baseDataAccessMock.Object;
        }
        private void InitializeMenuItemsInBaseDataAccess()
        {
            var baseDataAccessMock       = new Mock <IBaseDataAccess>();
            var sampleMenuItemCategories = new List <MenuItemCategory>()
            {
                new MenuItemCategory()
                {
                    Description = "CategoryDescription1", Id = 1, Name = "CategoryName1"
                },
                new MenuItemCategory()
                {
                    Description = "CategoryDescription2", Id = 2, Name = "CategoryName2"
                },
                new MenuItemCategory()
                {
                    Description = "CategoryDescription3", Id = 3, Name = "CategoryName3"
                },
                new MenuItemCategory()
                {
                    Description = "CategoryDescription4", Id = 4, Name = "CategoryName4"
                }
            };

            var sampleMenuItems = new List <MenuItem>()
            {
                new MenuItem()
                {
                    Category    = sampleMenuItemCategories[0],
                    Description = "MenuItemDescription1",
                    Id          = 1,
                    Name        = "MenuItemName1",
                    Price       = new Money()
                    {
                        Amount = 10, Currency = "PLN"
                    }
                },
                new MenuItem()
                {
                    Category    = sampleMenuItemCategories[1],
                    Description = "MenuItemDescription2",
                    Id          = 2,
                    Name        = "MenuItemName2",
                    Price       = new Money()
                    {
                        Amount = 20, Currency = "PLN"
                    }
                },
                new MenuItem()
                {
                    Category    = sampleMenuItemCategories[2],
                    Description = "MenuItemDescription3",
                    Id          = 3,
                    Name        = "MenuItemName3",
                    Price       = new Money()
                    {
                        Amount = 30, Currency = "PLN"
                    }
                },
            };

            baseDataAccessMock.Setup(b => b.GetMenuItems()).Returns(sampleMenuItems);

            _baseDataAccess = baseDataAccessMock.Object;
        }
Esempio n. 23
0
 public LearnCourseManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Esempio n. 24
0
 public OperationsRoleManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Esempio n. 25
0
 private static object ConfigureDataAccess(IBaseDataAccess accessImplementation, string connectionString)
 {
     accessImplementation.setConnectionString(connectionString);
     return(accessImplementation);
 }
Esempio n. 26
0
 /// <summary>
 ///
 /// </summary>
 public LearnManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Esempio n. 27
0
 public NavController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
Esempio n. 28
0
 /// <summary>
 ///
 /// </summary>
 public UserManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
 public BaseService(string connStr)
 {
     _dataAccess = new BaseDataAccess <T>(connStr);
 }
Esempio n. 30
0
 public TalExamTestManager()
 {
     Etdb        = new TalExamTestDB();
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Esempio n. 31
0
 /// <summary>
 ///
 /// </summary>
 public PostManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Esempio n. 32
0
 /// <summary>
 ///
 /// </summary>
 public DeptUserManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }