public AdminControllerQueryEntityTest(MockFirebaseFixture fixture)
        {
            _firebaseQuery = new FirebaseQuery(new FirebaseClient(FirebaseUrl, FirebaseAuth));
            var firebaseDataContext = new FirebaseDataContext <MockFirebasePerson>(FirebaseMockNode, _firebaseQuery);

            _adminControllerQueryEntity = new AdminControllerQueryEntity <MockFirebasePerson>(firebaseDataContext);
            _fixture = fixture;
        }
Example #2
0
        public UserController()
        {
            var firebaseUrl  = ConfigurationManager.AppSettings["FirebaseUrl"] ?? "https://swag-monster.firebaseio.com";
            var firebaseAuth = ConfigurationManager.AppSettings["FirebaseAuth"] ??
                               "MfX7DaAWOUjr0zJ2invYbaX6UceHZ3vrif0VGeL4";
            var firebaseQuery = new FirebaseQuery(new FirebaseClient(firebaseUrl, firebaseAuth));

            _userContext = new FirebaseDataContext <User>("Users", firebaseQuery);
        }
Example #3
0
        public AuctionController()
        {
            var firebaseUrl  = ConfigurationManager.AppSettings["FirebaseUrl"] ?? "https://swag-monster.firebaseio.com";
            var firebaseAuth = ConfigurationManager.AppSettings["FirebaseAuth"] ??
                               "MfX7DaAWOUjr0zJ2invYbaX6UceHZ3vrif0VGeL4";
            var firebaseQuery = new FirebaseQuery(new FirebaseClient(firebaseUrl, firebaseAuth));

            _auctionContext    = new FirebaseDataContext <Auction>("Auctions", firebaseQuery);
            _adminAuctionQuery = new AdminControllerQueryEntity <Auction>(_auctionContext);
            _userAuctionQuery  = new UserControllerQueryEntity <Auction>(_auctionContext);
        }