Exemplo n.º 1
0
        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;
        }
Exemplo 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;
        }
Exemplo 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;
        }
Exemplo n.º 5
0
 public ExamTestManager()
 {
     Etdb          = new ExamTestDB();
     _dataAccess   = DataAccessProvider.DataAccess;;
     _cacheService = new DefaultCacheService(new RuntimeMemoryCache(), 0.1f);
 }
Exemplo 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;
 }
Exemplo n.º 8
0
 public TagManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Exemplo n.º 9
0
 public MenuController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
 public TalEvalReportTemplateManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
     _mongoBase  = new MongoBaseMethod();
 }
Exemplo n.º 11
0
 /// <summary>
 ///
 /// </summary>
 public DeptRoleManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Exemplo n.º 12
0
 /// <summary>
 ///
 /// </summary>
 public DeptAccountManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Exemplo n.º 13
0
 public CartController(IBaseDataAccess baseDataAccess, IProcessOrderCommand orderProcessor, IAuthProvider authProvider)
 {
     _baseDataAccess = baseDataAccess;
     _orderProcessorCommand = orderProcessor;
     _authProvider = authProvider;
 }
Exemplo n.º 14
0
 /// <summary>
 ///
 /// </summary>
 public StudentAffairsManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;
 }
Exemplo n.º 15
0
 public PostDataAccess(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
Exemplo n.º 16
0
 public CartController(IBaseDataAccess baseDataAccess, IProcessOrderCommand orderProcessor, IAuthProvider authProvider)
 {
     _baseDataAccess        = baseDataAccess;
     _orderProcessorCommand = orderProcessor;
     _authProvider          = authProvider;
 }
Exemplo n.º 17
0
 public MenuController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
Exemplo n.º 18
0
        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;
        }
Exemplo n.º 19
0
 public NavController(IBaseDataAccess baseDataAccess)
 {
     _baseDataAccess = baseDataAccess;
 }
Exemplo n.º 20
0
 /// <summary>
 ///
 /// </summary>
 public RoleManager()
 {
     _dataAccess = DataAccessProvider.DataAccess;;
 }
Exemplo n.º 21
0
        private void InitializeBaseDataAccessWithNoItem()
        {
            var baseDataAccessMock = new Mock<IBaseDataAccess>();
            baseDataAccessMock.Setup(b => b.GetMenuItems()).Returns(new List<MenuItem>());

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