public void OnCommitmentInsertDetectedSaveInDatabase() { var startOfDay = new StartOfDay(); var agent = new PersistanceAgent<Commitment>(startOfDay); startOfDay.AddCommitment("Do tests"); Assert.AreEqual(1, agent.Get().Count()); }
public void OnCommitmentInsertDetectedSaveInDatabase() { var startOfDay = new StartOfDay(); var agent = new PersistanceAgent <Commitment>(startOfDay); startOfDay.AddCommitment("Do tests"); Assert.AreEqual(1, agent.Get().Count()); }
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()); }
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()); }