public void TestAdd() { int initialValues = phaseRepository.All().Count; Assert.AreEqual(initialValues, 0); phaseRepository.Add(phase); Assert.AreEqual(phaseRepository.All().Count, (initialValues + 1)); phaseRepository.Delete(phase); }
public void TestGetActiveConference() { Assert.AreEqual(conference.Name, "Test"); Assert.AreEqual(conference.ConferenceFee, 150); conferenceRepository.Add(conference); Conference activeConference = conferenceRepository.GetActiveConference(); Assert.AreEqual(newConference.Name, "Before"); Assert.AreEqual(100, newConference.ConferenceFee); newConference.Name = activeConference.Name; newConference.ConferenceFee = activeConference.ConferenceFee; Assert.AreEqual(conference.Name, "Test"); Assert.AreEqual(conference.ConferenceFee, 150); conferenceRepository.Delete(conference); phaseRepository.Delete(phase); }