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; }
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; }
/// <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; }
public ExamTestManager() { Etdb = new ExamTestDB(); _dataAccess = DataAccessProvider.DataAccess;; _cacheService = new DefaultCacheService(new RuntimeMemoryCache(), 0.1f); }
/// <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; }
public TagManager() { _dataAccess = DataAccessProvider.DataAccess;; }
public MenuController(IBaseDataAccess baseDataAccess) { _baseDataAccess = baseDataAccess; }
public TalEvalReportTemplateManager() { _dataAccess = DataAccessProvider.DataAccess;; _mongoBase = new MongoBaseMethod(); }
/// <summary> /// /// </summary> public DeptRoleManager() { _dataAccess = DataAccessProvider.DataAccess; }
/// <summary> /// /// </summary> public DeptAccountManager() { _dataAccess = DataAccessProvider.DataAccess; }
public CartController(IBaseDataAccess baseDataAccess, IProcessOrderCommand orderProcessor, IAuthProvider authProvider) { _baseDataAccess = baseDataAccess; _orderProcessorCommand = orderProcessor; _authProvider = authProvider; }
/// <summary> /// /// </summary> public StudentAffairsManager() { _dataAccess = DataAccessProvider.DataAccess; }
public PostDataAccess(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; }
public NavController(IBaseDataAccess baseDataAccess) { _baseDataAccess = baseDataAccess; }
/// <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; }
public LearnCourseManager() { _dataAccess = DataAccessProvider.DataAccess; }
public OperationsRoleManager() { _dataAccess = DataAccessProvider.DataAccess;; }
private static object ConfigureDataAccess(IBaseDataAccess accessImplementation, string connectionString) { accessImplementation.setConnectionString(connectionString); return(accessImplementation); }
/// <summary> /// /// </summary> public LearnManager() { _dataAccess = DataAccessProvider.DataAccess;; }
/// <summary> /// /// </summary> public UserManager() { _dataAccess = DataAccessProvider.DataAccess;; }
public BaseService(string connStr) { _dataAccess = new BaseDataAccess <T>(connStr); }
public TalExamTestManager() { Etdb = new TalExamTestDB(); _dataAccess = DataAccessProvider.DataAccess;; }
/// <summary> /// /// </summary> public PostManager() { _dataAccess = DataAccessProvider.DataAccess;; }
/// <summary> /// /// </summary> public DeptUserManager() { _dataAccess = DataAccessProvider.DataAccess; }