1 write to _tagStore
Aspire.Dashboard.Components.Tests (1)
Controls\ResourceTagEditorTests.cs (1)
62
_tagStore
= new(_localStorage, new LocalStorageLocks(), new FakeTimeProvider(), Options.Create(new DashboardOptions()), NullLogger<ResourceTagStore>.Instance);
19 references to _tagStore
Aspire.Dashboard.Components.Tests (19)
Controls\ResourceTagEditorTests.cs (19)
55
Assert.Equal(["Backend"],
_tagStore
.GetTags("api"));
65
Services.AddSingleton(
_tagStore
);
82
Assert.Equal(["backend"],
_tagStore
.GetTags("api"));
89
_tagStore
.AddTag("api", "backend");
90
_tagStore
.AddTag("api", "core");
91
_tagStore
.AddTag("worker", "jobs");
101
_tagStore
.AddTag("api", "backend");
102
_tagStore
.AddTag("worker", "background");
103
_tagStore
.AddTag("worker", "jobs");
118
_tagStore
.AddTag("worker", "Background");
125
Assert.Equal(["Background"],
_tagStore
.GetTags("api"));
138
Assert.Equal(["new tag"],
_tagStore
.GetTags("api"));
144
_tagStore
.AddTag("api", "backend");
145
_tagStore
.AddTag("api", "core");
150
Assert.Equal(["core"],
_tagStore
.GetTags("api"));
157
_tagStore
.AddTag("api", "backend");
158
_tagStore
.AddTag("api", "core");
164
Assert.Equal(["backend"],
_tagStore
.GetTags("api"));
172
_tagStore
.AddTag("api", "backend");