mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 11:24:44 +00:00
Defined the collection name as a constant string and changed the tests to use it.
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
{
|
||||
public class RepositoryHooksClientTests
|
||||
{
|
||||
[Collection("Repositories Hooks Collection")]
|
||||
[Collection(RepositoriesHooksCollection.Name)]
|
||||
public class TheGetAllMethod
|
||||
{
|
||||
readonly RepositoriesHooksFixture _fixture;
|
||||
@@ -31,7 +31,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
}
|
||||
}
|
||||
|
||||
[Collection("Repositories Hooks Collection")]
|
||||
[Collection(RepositoriesHooksCollection.Name)]
|
||||
public class TheGetMethod
|
||||
{
|
||||
readonly RepositoriesHooksFixture _fixture;
|
||||
@@ -86,7 +86,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
}
|
||||
}
|
||||
|
||||
[Collection("Repositories Hooks Collection")]
|
||||
[Collection(RepositoriesHooksCollection.Name)]
|
||||
public class TheEditMethod
|
||||
{
|
||||
readonly RepositoriesHooksFixture _fixture;
|
||||
@@ -111,7 +111,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
}
|
||||
}
|
||||
|
||||
[Collection("Repositories Hooks Collection")]
|
||||
[Collection(RepositoriesHooksCollection.Name)]
|
||||
public class TheTestMethod
|
||||
{
|
||||
readonly RepositoriesHooksFixture _fixture;
|
||||
@@ -130,7 +130,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
}
|
||||
}
|
||||
|
||||
[Collection("Repositories Hooks Collection")]
|
||||
[Collection(RepositoriesHooksCollection.Name)]
|
||||
public class ThePingMethod
|
||||
{
|
||||
readonly RepositoriesHooksFixture _fixture;
|
||||
@@ -149,7 +149,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
}
|
||||
}
|
||||
|
||||
[Collection("Repositories Hooks Collection")]
|
||||
[Collection(RepositoriesHooksCollection.Name)]
|
||||
public class TheDeleteMethod
|
||||
{
|
||||
readonly RepositoriesHooksFixture _fixture;
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
|
||||
namespace Octokit.Tests.Integration.fixtures
|
||||
{
|
||||
[CollectionDefinition("Repositories Hooks Collection")]
|
||||
[CollectionDefinition(Name)]
|
||||
public class RepositoriesHooksCollection : ICollectionFixture<RepositoriesHooksFixture>
|
||||
{
|
||||
public const string Name = "Repositories Hooks Collection";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user