public CoatDomain(IHelpetDBSettings dbSettings)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            _collection = database.GetCollection <CoatModel>(dbSettings.CoatCollectionName);
        }
        public PartnerCategoryDomain(IHelpetDBSettings dbSettings)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            _collection = database.GetCollection <PartnerCategoryModel>(dbSettings.PartnersCategoryCollectionName);
            _entityName = dbSettings.PartnersCategoryCollectionName;
        }
        public PetDomain(IHelpetDBSettings dbSettings, IBreedDomain breedDomain, IFurColorDomain furColorDomain, ICoatDomain coatDomain)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            _petCollection = database.GetCollection <PetModel>(dbSettings.PetsCollectionName);

            _breedDomain    = breedDomain;
            _furColorDomain = furColorDomain;
            _coatDomain     = coatDomain;
        }
        public PartnerDomain(IHelpetDBSettings dbSettings, IGooglePlaces googlePlaces, IPartnerCategoryDomain partnerCategoryDomain, IFilesDomain filesDomain)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            _collection = database.GetCollection <PartnerModel>(dbSettings.PartnersCollectionName);
            _entityName = dbSettings.PartnersCollectionName;

            _googlePlaces = googlePlaces;

            _partnerCategoryDomain = partnerCategoryDomain;
            _filesDomain           = filesDomain;
        }
        public FilesDomain(IWebHostEnvironment environment, IHttpContextAccessor httpContextAccessor, IHelpetGeneralSettings generalSettings, IHelpetDBSettings dbSettings) : base(environment, httpContextAccessor, generalSettings)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            _filesCollection  = database.GetCollection <FileModel>(dbSettings.FilesCollectionName);
            _imagesCollection = database.GetCollection <ImageModel>(dbSettings.ImagesCollectionName);
        }
        public UserDomain(IWebHostEnvironment environment, IHttpContextAccessor httpContextAccessor, IHelpetGeneralSettings generalSettings, IHelpetDBSettings dbSettings, IEmailSender emailSender, IPetDomain petDomain) : base(environment, httpContextAccessor, generalSettings)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            _userCollection = database.GetCollection <UserModel>(dbSettings.UsersCollectionName);
            _emailSender    = emailSender;

            _petDomain = petDomain;
        }