示例#1
0
 public BMBuildingController()
 {
     _buildingRepo  = new BuildingRepository();
     _accountRepo   = new AccountRepository();
     _apartmentRepo = new ApartmentRepository();
     _svgDatasource = new SVGDataSource();
 }
示例#2
0
 public ApartmentSvgAssignmentChecker(string apartmentIdAttributeName = "apt-id", string apartmentElementGroupName = "g")
 {
     _apartmentRepo             = new ApartmentRepository();
     _svgDataRepo               = new SVGDataRepository();
     _apartmentIdAttributeName  = apartmentIdAttributeName;
     _apartmentElementGroupName = apartmentElementGroupName;
 }
示例#3
0
        public PocoRepositoryTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _repo = new PocoRepository();
        }
        public PocoRepositoryTests()
        {
            Host.Run(new[] { "install y" }).Wait();
            Scaffold.Tables();

            var context = new ContextMocker();

            _repo = new PocoRepository();
        }
示例#5
0
        public SettingsServiceTests()
        {
            Host.Run(new[] { "install y" }).Wait();

            Scaffold.Run();

            _service = new SettingsService();
            _repo    = new PocoRepository();
        }
示例#6
0
        public Utility(IPocoRepository pocoRepo, IUserService userService, IContentTypeService contentTypeService, IContentService contentService, UmbracoContext context)
        {
            _context = context;

            _userService        = userService;
            _contentTypeService = contentTypeService;
            _contentService     = contentService;

            _pocoRepo = pocoRepo;
        }
示例#7
0
        public BuildingManager(MembershipHelper memberHelper, UmbracoContext context)
            : base(context)
        {
            _buildingRepo = new BuildingRepository();
            _addressRepo  = new AddressRepository();

            _memberHelper            = memberHelper;
            _buildingActionTemplates = new Dictionary <string, string>();
            _buildingActionTemplates.Add("Configure", "BMBuildingConfiguration");//actionName,templateAlias
            _buildingActionTemplates.Add("Edit", "BMBuildingEdit");
        }
示例#8
0
        public ApartmentManager()
        {
            _dataSourceService  = new ExcelDataSourceService();
            _apartmentRepo      = new ApartmentRepository();
            _apartmentAssetRepo = new ApartmentAssetRepository();
            _accountRepo        = new AccountRepository();
            _buildingRepo       = new BuildingRepository();

            _buildingFolderRepo  = new BuildingFolderRepository();
            _apartmentFolderRepo = new ApartmentFolderRepository();
            _svgRepository       = new SVGDataRepository();
        }
示例#9
0
        public MediaManager(UmbracoContext context)
        {
            _context            = context;
            _accountFolderRepo  = new AccountFolderRepository();
            _buildingFolderRepo = new BuildingFolderRepository();
            _buildingAssetRepo  = new BuildingAssetRepository();

            _apartmentAssetRepo  = new ApartmentAssetRepository();
            _apartmentFolderRepo = new ApartmentFolderRepository();
            _buildingRepo        = new BuildingRepository();
            _accountRepo         = new AccountRepository();

            _apartmentRepo = new ApartmentRepository();
            _assetManager  = new AssetManager();
            _mediaService  = _context.Application.Services.MediaService;
            _umbracoHelper = new UmbracoHelper(_context);
        }
示例#10
0
 public ConfigService(IPocoRepository repo)
 {
     _repo = repo;
 }
示例#11
0
 private PromoService(IPocoRepository repo)
 {
     _repo = repo;
 }
示例#12
0
 public AssetManager()
 {
     _buildingAssetRepo  = new BuildingAssetRepository();
     _apartmentAssetRepo = new ApartmentAssetRepository();
 }
示例#13
0
 public ConfigService(ILogger log, IPocoRepository repo)
 {
     this.log  = log;
     this.repo = repo;
 }
示例#14
0
 public AddressApiController()
 {
     _addressRepo = new AddressRepository();
 }
示例#15
0
 private ConfigService(ILogger log, IPocoRepository repo)
 {
     _log  = log;
     _repo = repo;
 }
示例#16
0
 private ConfigService(IPocoRepository repo)
 {
     _repo = repo;
 }
示例#17
0
 public BuildingApiController()
 {
     _bldgRepo    = new BuildingRepository();
     _addressRepo = new AddressRepository();
 }
示例#18
0
 private SettingsService(ILogger log, IPocoRepository repo)
 {
     _log  = log;
     _repo = repo;
 }
示例#19
0
 public ExcelDataSourceService()
 {
     _apartmentRepo       = new ApartmentRepository();
     _apartmentAssetRepo  = new ApartmentAssetRepository();
     _apartmentStatusRepo = new ApartmentStatusRepository();
 }
示例#20
0
 private GroupService(ILogger log, IPocoRepository repo)
 {
     _log  = log;
     _repo = repo;
 }
示例#21
0
 public BuildingManagerService()
 {
     _buildingRepo      = new BuildingRepository();
     _buildingAssetRepo = new BuildingAssetRepository();
     _addressRepo       = new AddressRepository();
 }
示例#22
0
 public PocoCachingRepository(IPocoRepository pocoRepository)
 {
     this.pocoRepositry = pocoRepository;
 }
示例#23
0
 public BMAccountController()
 {
     _accountRepo = new AccountRepository();
 }
示例#24
0
 private SettingsService(IPocoRepository repo)
 {
     _repo = repo;
 }
示例#25
0
 public BMBuildingSliderController()
 {
     _buildingRepo  = new BuildingRepository();
     _accountRepo   = new AccountRepository();
     _apartmentRepo = new ApartmentRepository();
 }
示例#26
0
 private GroupService(IPocoRepository repo)
 {
     _repo = repo;
 }