Skip to content

Commit

Permalink
fixed namespaces
Browse files Browse the repository at this point in the history
killed zombie code
  • Loading branch information
RagingKore committed Dec 8, 2023
1 parent 2dd50e5 commit 6c4f6ac
Show file tree
Hide file tree
Showing 43 changed files with 41 additions and 58 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Append;

public static class ShouldThrowAsyncExtensions {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Grpc.Core;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Append;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Append")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Append;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Append")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Polly;
using Polly.Contrib.WaitAndRetry;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Append;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Append")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Append;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Append")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Grpc.Core;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Append;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Append")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Grpc.Core;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Delete;

[Trait("Category", "Operation:Delete")]
public class deleting_stream(ITestOutputHelper output, EventStoreFixture fixture) : EventStoreTests<EventStoreFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Delete;

[Trait("Category", "Operation:Delete")]
public class deleted_stream(ITestOutputHelper output, EventStoreFixture fixture) : EventStoreTests<EventStoreFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@
<ItemGroup>
<None Remove="EventStore.Client.Streams.Tests.csproj.DotSettings" />
</ItemGroup>
<ItemGroup>
<Folder Include="ReadAll\" />
<Folder Include="ReadStream\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Text.Json;
using Grpc.Core;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Metadata;

[Trait("Category", "Metadata")]
public class stream_metadata(ITestOutputHelper output, EventStoreFixture fixture) : EventStoreTests<EventStoreFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Read;

public readonly record struct EventBinaryData(Uuid Id, byte[] Data, byte[] Metadata) {
public bool Equals(EventBinaryData other) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Read;

static class EventDataComparer {
public static bool Equal(EventData expected, EventRecord actual) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Read;

public class ReadAllEventsFixture : EventStoreFixture {
public ReadAllEventsFixture() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Grpc.Core;

namespace EventStore.Client.Streams.Tests;

namespace EventStore.Client.Streams.Tests.Read;

[Trait("Category", "Target:All")]
[Trait("Category", "Operation:Read")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Text;

namespace EventStore.Client.Streams.Tests;

namespace EventStore.Client.Streams.Tests.Read;

[Trait("Category", "Target:All")]
[Trait("Category", "Operation:Read")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Grpc.Core;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Read;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Read")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Read;

[Trait("Category", "Target:Stream")]
public abstract class read_stream_events_linked_to_deleted_stream(ReadEventsLinkedToDeletedStreamFixture fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Read;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Read")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
namespace EventStore.Client.Streams.Tests;

namespace EventStore.Client.Streams.Tests.Read;

[Trait("Category", "Target:Stream")]
[Trait("Category", "Operation:Read")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;

namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

public class SecurityFixture : EventStoreFixture {
public const string NoAclStream = nameof(NoAclStream);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class all_stream_with_no_acl_security(ITestOutputHelper output, all_stream_with_no_acl_security.CustomFixture fixture) : EventStoreTests<all_stream_with_no_acl_security.CustomFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class delete_stream_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class multiple_role_security(ITestOutputHelper output, multiple_role_security.CustomFixture fixture) : EventStoreTests<multiple_role_security.CustomFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class overriden_system_stream_security(ITestOutputHelper output, overriden_system_stream_security.CustomFixture fixture) : EventStoreTests<overriden_system_stream_security.CustomFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class overriden_system_stream_security_for_all(ITestOutputHelper output, overriden_system_stream_security_for_all.CustomFixture fixture) : EventStoreTests<overriden_system_stream_security_for_all.CustomFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class overriden_user_stream_security(ITestOutputHelper output, overriden_user_stream_security.CustomFixture fixture) : EventStoreTests<overriden_user_stream_security.CustomFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class read_all_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class read_stream_meta_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class read_stream_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class stream_security_inheritance(ITestOutputHelper output, stream_security_inheritance.CustomFixture fixture) : EventStoreTests<stream_security_inheritance.CustomFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class subscribe_to_all_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class subscribe_to_stream_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class system_stream_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class write_stream_meta_security(ITestOutputHelper output, SecurityFixture fixture) : EventStoreTests<SecurityFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests.Security;
namespace EventStore.Client.Streams.Tests;

[Trait("Category", "Security")]
public class write_stream_security : IClassFixture<SecurityFixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.CompilerServices;
using System.Text;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Serialization;

[Trait("Category", "Serialization")]
public class is_json(ITestOutputHelper output, EventStoreFixture fixture) : EventStoreTests<EventStoreFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Subscriptions;

public record SubscriptionDroppedResult(SubscriptionDroppedReason Reason, Exception? Error) {
public Task Throw() => Task.FromException(Error!);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Subscriptions;

public record SubscriptionFilter(string Name, Func<string, IEventFilter> Create, Func<string, EventData, EventData> PrepareEvent) {
public override string ToString() => Name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Subscriptions;


[Trait("Category", "Subscriptions")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Grpc.Core;
using static System.TimeSpan;

namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Subscriptions;

[Trait("Category", "Subscriptions")]
public class @reconnection(ITestOutputHelper output, ReconnectionFixture fixture) : EventStoreTests<ReconnectionFixture>(output, fixture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Subscriptions;

[Trait("Category", "Subscriptions")]
[Trait("Category", "Target:All")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.Streams.Tests;
namespace EventStore.Client.Streams.Tests.Subscriptions;

[Trait("Category", "Subscriptions")]
[Trait("Category", "Target:Stream")]
Expand Down
10 changes: 0 additions & 10 deletions test/EventStore.Client.Streams.Tests/TestEventExtensions.cs

This file was deleted.

0 comments on commit 6c4f6ac

Please sign in to comment.