Deprecated public visibility (#249)

This commit is contained in:
Jedd Morgan
2025-03-08 17:50:52 +00:00
committed by GitHub
parent 9695ec8c51
commit a79f0fd035
3 changed files with 8 additions and 6 deletions
@@ -2,7 +2,9 @@
public enum ProjectVisibility
{
Private,
Public,
Unlisted,
Private = 0,
[Obsolete("Use Unlisted instead", true)]
Public = 1,
Unlisted = 2,
}
@@ -29,7 +29,7 @@ public class ProjectResourceTests
[Theory]
[InlineData("Very private project", "My secret project", ProjectVisibility.Private)]
[InlineData("Very public project", null, ProjectVisibility.Public)]
[InlineData("Very unlisted project", null, ProjectVisibility.Unlisted)]
public async Task ProjectCreate_Should_CreateProjectSuccessfully(
string name,
string? description,
@@ -70,7 +70,7 @@ public class ProjectResourceTests
// Arrange
const string NEW_NAME = "MY new name";
const string NEW_DESCRIPTION = "MY new desc";
const ProjectVisibility NEW_VISIBILITY = ProjectVisibility.Public;
const ProjectVisibility NEW_VISIBILITY = ProjectVisibility.Unlisted;
// Act
var newProject = await Sut.Update(
@@ -57,7 +57,7 @@ public class GeneralSendTest
client = TestDataHelper.ServiceProvider.GetRequiredService<IClientFactory>().Create(acc);
_project = await client.Project.Create(
new($"General Send Test run {Guid.NewGuid()}", null, ProjectVisibility.Public)
new($"General Send Test run {Guid.NewGuid()}", null, ProjectVisibility.Unlisted)
);
_remote = TestDataHelper.ServiceProvider.GetRequiredService<IServerTransportFactory>().Create(acc, _project.id);
}