Esempio n. 1
0
        public void LogDatabase_Transactions_Can_Rollback_Inserts()
        {
            _LogDatabase.StartTransaction();
            _LogDatabase.EstablishSession("88.77.66.55", null);
            _LogDatabase.RollbackTransaction();

            var clients     = new List <LogClient>();
            var sessionsMap = new Dictionary <long, IList <LogSession> >();

            _LogDatabase.FetchAll(clients, sessionsMap);

            Assert.AreEqual(0, clients.Count);
            Assert.AreEqual(0, sessionsMap.Count);
        }