Exemplo n.º 1
0
 public void OnCommitmentInsertDetectedSaveInDatabase()
 {
     var startOfDay = new StartOfDay();
     var agent = new PersistanceAgent<Commitment>(startOfDay);
     startOfDay.AddCommitment("Do tests");
     Assert.AreEqual(1, agent.Get().Count());
 }
Exemplo n.º 2
0
        public void OnCommitmentInsertDetectedSaveInDatabase()
        {
            var startOfDay = new StartOfDay();
            var agent      = new PersistanceAgent <Commitment>(startOfDay);

            startOfDay.AddCommitment("Do tests");
            Assert.AreEqual(1, agent.Get().Count());
        }
Exemplo n.º 3
0
 public void OnCommitmentRemoveDetectedDeleteFromDatabase()
 {
     var startOfDay = new StartOfDay();
     var agent = new PersistanceAgent<Commitment>(startOfDay);
     startOfDay.AddCommitment("Do tests");
     Assert.AreEqual(1, agent.Get().Count());
     startOfDay.RemoveCommitment(0);
     Assert.AreEqual(0, agent.Get().Count());
 }
Exemplo n.º 4
0
        public void OnCommitmentRemoveDetectedDeleteFromDatabase()
        {
            var startOfDay = new StartOfDay();
            var agent      = new PersistanceAgent <Commitment>(startOfDay);

            startOfDay.AddCommitment("Do tests");
            Assert.AreEqual(1, agent.Get().Count());
            startOfDay.RemoveCommitment(0);
            Assert.AreEqual(0, agent.Get().Count());
        }