Example #1
0
        public void Sharing()
        {
            var create = _api.AddShare(_synoTestFolderNoSlash);

            create.success.Should().BeTrue();

            var info = _api.GetSharingInfo(create.Data.links.First().id);

            info.success.Should().BeTrue();

            var editShare = _api.EditShare(create.Data.links.First().id);

            editShare.success.Should().BeTrue();

            _api.DeleteShare(create.Data.links.First().id);

            _api.ClearInvalidShares(create.Data.links.First().id);
        }