public void SqlCeClientTransactionRepositoryAddTest()
 {
     SqlCeClientTransactionRepository target = new SqlCeClientTransactionRepository();
     TransactionType type = TransactionType.Insert;
     Company entity = new Company();
     entity.Name = "Test 123";
     object unitOfWorkKey = Guid.NewGuid();
     target.Add(new ClientTransaction(unitOfWorkKey, type, entity));
 }
        public void FindPendingTest()
        {
            // Make sure there is at least one pending transaction 
            this.SqlCeClientTransactionRepositoryAddTest();

            // Get the pending transactions
            SqlCeClientTransactionRepository target = new SqlCeClientTransactionRepository();
            IList<ClientTransaction> transactions = target.FindPending();
            Assert.IsTrue(transactions.Count > 0);
        }
 public void GetLastSynchronizationTest()
 {
     SqlCeClientTransactionRepository target = new SqlCeClientTransactionRepository();
     target.SetLastSynchronization(DateTime.Now);
     DateTime? lastSynchronization = target.GetLastSynchronization();
     Assert.IsTrue(lastSynchronization.HasValue);
     Assert.IsTrue(DateTime.Now > lastSynchronization.Value);
 }
 public void SetLastSynchronizationTest()
 {
     SqlCeClientTransactionRepository target = new SqlCeClientTransactionRepository();
     target.SetLastSynchronization(DateTime.Now);
 }