Example #1
0
        private DataManager()
        {
            _CharityList = new List <CharityDTO>();
            var defaultCharity = new CharityDTO
            {
                CharityName = "Developer",
                CharityID   = "0000000000000000000000",
                PoolID      = "DCjL37j8YfFOcXxcAIcSrWulNm30Dw97"
            };

            _CharityList.Add(defaultCharity);
            _CharityList.Add(defaultCharity);

            _UserList = new List <UserDTO>();
            var defaultUser = new UserDTO
            {
                userID         = "1942986769050945",
                firstName      = "Brandon",
                numberOfHashes = 12312312312,
                picture        = "https://scontent.xx.fbcdn.net/v/t1.0-1/p80x80/15966047_1554751541207805_8392630923285300093_n.jpg?oh=54a35b0c42fedb4aee83b1325a0feed6&oe=5B176A96"
            };

            _UserList.Add(defaultUser);
        }
Example #2
0
 public void addCharity(CharityDTO charity)
 {
     CharitiesDB.InsertOne(charity);
 }