public void Import() { EntryImporter.Import(SourceDirectory, ContentDirectory); Assert.AreEqual(3, DataService.GetCategories().Count, "The expected number of categories was not imported."); Assert.AreEqual(30, DataService.GetEntriesForDay(DateTime.MaxValue.AddDays(-2), TimeZone.CurrentTimeZone, "", int.MaxValue, int.MaxValue, null).Count); Assert.AreEqual("First Weblog post and test just to try things out.", DataService.GetEntry("1").Content); Assert.AreEqual(@"http://www.fawcette.com/vsm/2002_03/online/online_eprods/c_03_08/", DataService.GetEntry("21").Link); }
public override void SetUp() { base.SetUp(); EntryImporter.Import(EntryImporterTest.SourceDirectory, ContentDirectory); }