public void GetPresentationReturnsPresentationIfIdExists() { var target = new DatabaseContext(); var presentation = TestPresentation(); var db = new PresentationsEntities(); db.Presentations.Add(presentation); db.SaveChanges(); var outputPresentation = target.GetPresentation(presentation.PresentationId); Assert.AreEqual(outputPresentation.PresentationId, presentation.PresentationId); }
public void GetPresentationThrowsExceptionIfIdDoesNotExist() { var target = new DatabaseContext(); target.GetPresentation(99); }