public TagResource EnsureTag(string tagLabel) { var tag = Tags.All().FirstOrDefault(v => v.Label == tagLabel); if (tag == null) { tag = Tags.Post(new TagResource { Label = tagLabel }); } return(tag); }
public void get_all_diskspace() { var items = DiskSpace.All(); items.Should().NotBeEmpty(); items.First().FreeSpace.Should().NotBe(0); items.First().TotalSpace.Should().NotBe(0); items.First().Path.Should().NotBeNullOrEmpty(); }