Пример #1
0
        public void ReadFromDb()
        {
            const int length = 10;

            ReadDataBases();

            Assert.True(_userDataBase != null);
            Assert.True(_accountDataBase != null);


            Assert.AreEqual(length, _userDataBase.GetAll().Count);
            Assert.True(_userDataBase.Get(0L) != null);
            Assert.AreEqual(length, _accountDataBase.GetAll().Count);
            Assert.True(_accountDataBase.Get(70L) != null);
        }
Пример #2
0
        public void ZReadFromDb()
        {
            const int length = 10;


            var provider = new TestDbSourceProvider();

            _dbManager.SetSourceProvider(provider);


            _userDataBase    = _dbManager.GetUserDataBase();
            _accountDataBase = _dbManager.GetAccountDatabase();


            Assert.True(_userDataBase != null);
            Assert.True(_accountDataBase != null);


            Assert.AreEqual(length, _userDataBase.GetAll().Count);
            Assert.True(_userDataBase.Get(0) != null);
            Assert.AreEqual(length, _accountDataBase.GetAll().Count);
            Assert.True(_accountDataBase.Get(70) != null);
        }