Skip to content

Commit

Permalink
Reorganise obsolete tests to prevent cluttering and make future refac…
Browse files Browse the repository at this point in the history
…tor easier
  • Loading branch information
josephcummings committed Apr 30, 2024
1 parent c8b2910 commit 69d9fbe
Show file tree
Hide file tree
Showing 70 changed files with 955 additions and 282 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_max_one_client_obsolete : IClassFixture<connect_to_existing_with_max_one_client_obsolete.Fixture> {
const string Group = "maxoneclient";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_permissions_obsolete
: IClassFixture<connect_to_existing_with_permissions_obsolete.Fixture> {
const string Group = "connectwithpermissions";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_beginning_obsolete : IClassFixture<connect_to_existing_with_start_from_beginning_obsolete.Fixture> {
const string Group = "startfrombeginning";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_obsolete : IClassFixture<connect_to_existing_with_start_from_not_set_obsolete.Fixture> {
const string Group = "startfromend1";
readonly Fixture _fixture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_then_event_written_obsolete
: IClassFixture<connect_to_existing_with_start_from_not_set_then_event_written_obsolete.Fixture> {
const string Group = "startfromnotset2";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_end_position_obsolete: IClassFixture<connect_to_existing_with_start_from_set_to_end_position_obsolete.Fixture> {
const string Group = "startfromend1";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class
connect_to_existing_with_start_from_set_to_end_position_then_event_written_obsolete
: IClassFixture<connect_to_existing_with_start_from_set_to_end_position_then_event_written_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_invalid_middle_position_obsolete
: IClassFixture<connect_to_existing_with_start_from_set_to_invalid_middle_position_obsolete.Fixture> {
const string Group = "startfrominvalid1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_valid_middle_position_obsolete
: IClassFixture<connect_to_existing_with_start_from_set_to_valid_middle_position_obsolete.Fixture> {
const string Group = "startfromvalid";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_without_permissions_obsolete
: IClassFixture<connect_to_existing_without_permissions_obsolete.Fixture> {
readonly Fixture _fixture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_without_read_all_permissions_obsolete
: IClassFixture<connect_to_existing_without_read_all_permissions_obsolete.Fixture> {
readonly Fixture _fixture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_non_existing_with_permissions_obsolete
: IClassFixture<connect_to_non_existing_with_permissions_obsolete.Fixture> {
const string Group = "foo";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_with_retries_obsolete
: IClassFixture<connect_with_retries_obsolete.Fixture> {
const string Group = "retries";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class deleting_existing_with_subscriber_obsolete
: IClassFixture<deleting_existing_with_subscriber_obsolete.Fixture> {
readonly Fixture _fixture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class get_info_obsolete : IClassFixture<get_info_obsolete.Fixture> {
const string GroupName = nameof(get_info_obsolete);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Text;

namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_catching_up_to_link_to_events_manual_ack_obsolete
: IClassFixture<happy_case_catching_up_to_link_to_events_manual_ack_obsolete.Fixture> {
const string Group = nameof(Group);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_catching_up_to_normal_events_manual_ack_obsolete : IClassFixture<happy_case_catching_up_to_normal_events_manual_ack_obsolete.Fixture> {
const string Group = nameof(Group);
const int BufferCount = 10;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_filtered_obsolete : IClassFixture<happy_case_filtered_obsolete.Fixture> {
readonly Fixture _fixture;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_filtered_with_start_from_set_obsolete : IClassFixture<happy_case_filtered_with_start_from_set_obsolete.Fixture> {
readonly Fixture _fixture;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_writing_and_subscribing_to_normal_events_manual_ack_obsolete
: IClassFixture<happy_case_writing_and_subscribing_to_normal_events_manual_ack_obsolete.Fixture> {
const string Group = nameof(Group);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class update_existing_with_check_point_filtered_obsolete
: IClassFixture<update_existing_with_check_point_filtered_obsolete.Fixture> {
const string Group = "existing-with-check-point-filtered";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class update_existing_with_subscribers_obsolete
: IClassFixture<update_existing_with_subscribers_obsolete.Fixture> {
const string Group = "existing";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class when_writing_and_filtering_out_events_obsolete
: IClassFixture<when_writing_and_filtering_out_events_obsolete.Fixture> {
const string Group = "filtering-out-events";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class when_writing_and_subscribing_to_normal_events_manual_nack_obsolete
: IClassFixture<when_writing_and_subscribing_to_normal_events_manual_nack_obsolete.Fixture> {
const string Group = nameof(Group);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_max_one_client_obsolete
: IClassFixture<connect_to_existing_with_max_one_client_obsolete.Fixture> {
const string Group = "startinbeginning1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_permissions_obsolete
: IClassFixture<connect_to_existing_with_permissions_obsolete.Fixture> {
const string Stream = nameof(connect_to_existing_with_permissions_obsolete);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_beginning_and_events_in_it_obsolete
: IClassFixture<connect_to_existing_with_start_from_beginning_and_events_in_it_obsolete.Fixture
> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_beginning_and_no_stream_obsolete
: IClassFixture<connect_to_existing_with_start_from_beginning_and_no_stream_obsolete.Fixture> {
const string Group = "startinbeginning1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_and_events_in_it_obsolete
: IClassFixture<connect_to_existing_with_start_from_not_set_and_events_in_it_obsolete.
Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_and_events_in_it_then_event_written_obsolete
: IClassFixture<connect_to_existing_with_start_from_not_set_and_events_in_it_then_event_written_obsolete.Fixture> {
const string Group = "startinbeginning1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_end_position_and_events_in_it_obsolete
: IClassFixture<connect_to_existing_with_start_from_set_to_end_position_and_events_in_it_obsolete.Fixture> {
const string Group = "startinbeginning1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class
connect_to_existing_with_start_from_set_to_end_position_and_events_in_it_then_event_written_obsolete
: IClassFixture<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_two_and_no_stream_obsolete
: IClassFixture<connect_to_existing_with_start_from_two_and_no_stream_obsolete.Fixture> {
const string Group = "startinbeginning1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_x_set_and_events_in_it_obsolete
: IClassFixture<connect_to_existing_with_start_from_x_set_and_events_in_it_obsolete.Fixture> {
const string Group = "startinx2";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_x_set_and_events_in_it_then_event_written_obsolete
: IClassFixture<
connect_to_existing_with_start_from_x_set_and_events_in_it_then_event_written_obsolete.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class
connect_to_existing_with_start_from_x_set_higher_than_x_and_events_in_it_then_event_written_obsolete
: IClassFixture<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_without_permissions_obsolete
: IClassFixture<connect_to_existing_without_permissions_obsolete.Fixture> {
const string Stream = "$" + nameof(connect_to_existing_without_permissions_obsolete);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete]
[Obsolete("Will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_non_existing_with_permissions_obsolete
: IClassFixture<connect_to_non_existing_with_permissions_obsolete.Fixture> {
const string Stream = nameof(connect_to_non_existing_with_permissions_obsolete);
Expand Down
Loading

0 comments on commit 69d9fbe

Please sign in to comment.