public void ShouldCreateTagDataWithSpacedName() { TagData td = TagHelper.CreateTag("test Some data"); td.Should().NotBeNull(); td.Name.Should().Be("TestSomeData"); }
public void ShouldCreateTagDataWithSimpleName() { TagData td = TagHelper.CreateTag("test"); td.Should().NotBeNull(); td.Name.Should().Be("test"); }
public static void AddTag(string name) { GlobalTagStore gts = ServiceLocator.Instance.GetService <GlobalTagStore>(); if (gts.Add(TagHelper.CreateTag(name))) { // save the list or mark it as modified gts.SetModifed(); gts.SaveIfNeeded(); } }