public void AddTag(String TagName) { TagNames tag = new TagNames(); tag.TagName = TagName; AddTag(tag); }
public void TestTagExists() { TagNames tag = new TagNames("audio"); Search.database.AddTag(tag); Assert.True(Search.database.TagExists(tag)); }
public void TestTagDoesntExist() { TagNames tag = new TagNames("audio"); Assert.False(Search.database.TagExists(tag)); }
public void TestGetListOfAllTags() { var expected = new List<string>(); expected.Add("audio"); expected.Add("video"); expected.Add("text"); foreach (String s in expected) { TagNames tag = new TagNames(); tag.TagName = s; Search.database.AddTag(tag); } var actual = Search.database.getListOfAllTags(); expected.Sort(); actual.Sort(); Assert.AreEqual(expected, actual); }
public void TestAddTagNameOther() { TagNames tag = new TagNames("Test Tag"); Search.database.AddTag(tag); var tagActual = (from f in Search.database.TagNames select f).First(); Assert.AreEqual(tag.TagName, tagActual.TagName); }
public Tag(CaesFile file, TagNames tag) { this.FilePath = file.Path; this.TagName = tag.TagName; }
public void AddTag(TagNames tag) { this.TagNames.InsertOnSubmit(tag); this.SubmitChanges(); }
public bool TagExists(TagNames tag) { return TagExists(tag.TagName); }
public bool TagExists(TagNames tag) { return(TagExists(tag.TagName)); }