Skip to content

Commit

Permalink
style: unify test class names (#378)
Browse files Browse the repository at this point in the history
* Use uniform Test class names on Meetings API

* Fix typos in Meetings API

* Use uniform Test class names on Video API
  • Loading branch information
Tr00d authored Apr 14, 2023
1 parent 259aba4 commit e31700e
Show file tree
Hide file tree
Showing 135 changed files with 292 additions and 292 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

namespace Vonage.Server.Test.Video.Archives.AddStream
{
public class AddStreamRequestBuilderTest
public class RequestBuilderTest
{
private readonly Guid applicationId;
private readonly Guid archiveId;
private readonly Guid streamId;

public AddStreamRequestBuilderTest()
public RequestBuilderTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

namespace Vonage.Server.Test.Video.Archives.AddStream
{
public class AddStreamRequestTest
public class RequestTest
{
private readonly Guid applicationId;
private readonly Guid archiveId;
private readonly Guid streamId;

public AddStreamRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

namespace Vonage.Server.Test.Video.Archives.AddStream
{
public class AddStreamTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Unit>>> Operation =>
configuration => new ArchiveClient(configuration).AddStreamAsync(this.request);

private readonly Result<AddStreamRequest> request;

public AddStreamTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

namespace Vonage.Server.Test.Video.Archives.ChangeLayout
{
public class ChangeLayoutRequestTest
public class RequestTest
{
private readonly Fixture fixture;
private readonly Guid applicationId;
private readonly Guid archiveId;
private readonly Layout layout;

public ChangeLayoutRequestTest()
public RequestTest()
{
this.fixture = new Fixture();
this.fixture.Customize(new SupportMutableValueTypesCustomization());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

namespace Vonage.Server.Test.Video.Archives.ChangeLayout
{
public class ChangeLayoutTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Unit>>> Operation =>
configuration => new ArchiveClient(configuration).ChangeLayoutAsync(this.request);

private readonly Result<ChangeLayoutRequest> request;

public ChangeLayoutTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Vonage.Server.Test.Video.Archives.CreateArchive
{
public class CreateArchiveRequestBuilderTest
public class RequestBuilderTest
{
private readonly Guid applicationId;
private readonly Layout layout;
Expand All @@ -19,7 +19,7 @@ public class CreateArchiveRequestBuilderTest
private readonly string sessionId;
private readonly string name;

public CreateArchiveRequestBuilderTest()
public RequestBuilderTest()
{
var fixture = new Fixture();
fixture.Customize(new SupportMutableValueTypesCustomization());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

namespace Vonage.Server.Test.Video.Archives.CreateArchive
{
public class CreateArchiveRequestTest
public class RequestTest
{
private readonly Guid applicationId;
private readonly string sessionId;

public CreateArchiveRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.CreateArchive
{
public class CreateArchiveDeserializationTest
public class SerializationTest
{
private readonly SerializationTestHelper helper;

public CreateArchiveDeserializationTest() =>
this.helper = new SerializationTestHelper(typeof(CreateArchiveDeserializationTest).Namespace,
public SerializationTest() =>
this.helper = new SerializationTestHelper(typeof(SerializationTest).Namespace,
JsonSerializerBuilder.Build());

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

namespace Vonage.Server.Test.Video.Archives.CreateArchive
{
public class CreateArchiveTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Archive>>> Operation =>
configuration => new ArchiveClient(configuration).CreateArchiveAsync(this.request);

private readonly Result<CreateArchiveRequest> request;

public CreateArchiveTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.DeleteArchive
{
public class DeleteArchiveRequestTest
public class RequestTest
{
private readonly Guid applicationId;
private readonly Guid archiveId;

public DeleteArchiveRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

namespace Vonage.Server.Test.Video.Archives.DeleteArchive
{
public class DeleteArchiveTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Unit>>> Operation =>
configuration => new ArchiveClient(configuration).DeleteArchiveAsync(this.request);

private readonly Result<DeleteArchiveRequest> request;

public DeleteArchiveTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.GetArchive
{
public class GetArchiveRequestTest
public class RequestTest
{
private readonly Guid applicationId;
private readonly Guid archiveId;

public GetArchiveRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.GetArchive
{
public class GetArchiveDeserializationTest
public class SerializationTest
{
private readonly SerializationTestHelper helper;

public GetArchiveDeserializationTest() =>
this.helper = new SerializationTestHelper(typeof(GetArchiveDeserializationTest).Namespace,
public SerializationTest() =>
this.helper = new SerializationTestHelper(typeof(SerializationTest).Namespace,
JsonSerializerBuilder.Build());

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

namespace Vonage.Server.Test.Video.Archives.GetArchive
{
public class GetArchiveTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Archive>>> Operation =>
configuration => new ArchiveClient(configuration).GetArchiveAsync(this.request);

private readonly Result<GetArchiveRequest> request;

public GetArchiveTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

namespace Vonage.Server.Test.Video.Archives.GetArchives
{
public class GetArchivesRequestBuilderTest
public class RequestBuilderTest
{
private readonly Guid applicationId;

public GetArchivesRequestBuilderTest()
public RequestBuilderTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

namespace Vonage.Server.Test.Video.Archives.GetArchives
{
public class GetArchivesRequestTest
public class RequestTest
{
private readonly Guid applicationId;

public GetArchivesRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.GetArchives
{
public class GetArchivesDeserializationTest
public class SerializationTest
{
private readonly SerializationTestHelper helper;

public GetArchivesDeserializationTest() =>
this.helper = new SerializationTestHelper(typeof(GetArchivesDeserializationTest).Namespace,
public SerializationTest() =>
this.helper = new SerializationTestHelper(typeof(SerializationTest).Namespace,
JsonSerializerBuilder.Build());

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

namespace Vonage.Server.Test.Video.Archives.GetArchives
{
public class GetArchivesTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<GetArchivesResponse>>> Operation =>
configuration => new ArchiveClient(configuration).GetArchivesAsync(this.request);

private readonly Result<GetArchivesRequest> request;

public GetArchivesTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

namespace Vonage.Server.Test.Video.Archives.RemoveStream
{
public class RemoveStreamRequestTest
public class RequestTest
{
private readonly Guid applicationId;
private readonly Guid archiveId;
private readonly Guid streamId;

public RemoveStreamRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

namespace Vonage.Server.Test.Video.Archives.RemoveStream
{
public class RemoveStreamTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Unit>>> Operation =>
configuration => new ArchiveClient(configuration).RemoveStreamAsync(this.request);

private readonly Result<RemoveStreamRequest> request;

public RemoveStreamTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.StopArchive
{
public class StopArchiveRequestTest
public class RequestTest
{
private readonly Guid applicationId;
private readonly Guid archiveId;

public StopArchiveRequestTest()
public RequestTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Vonage.Server.Test.Video.Archives.StopArchive
{
public class StopArchiveDeserializationTest
public class SerializationTest
{
private readonly SerializationTestHelper helper;

public StopArchiveDeserializationTest() =>
this.helper = new SerializationTestHelper(typeof(StopArchiveDeserializationTest).Namespace,
public SerializationTest() =>
this.helper = new SerializationTestHelper(typeof(SerializationTest).Namespace,
JsonSerializerBuilder.Build());

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

namespace Vonage.Server.Test.Video.Archives.StopArchive
{
public class StopArchiveTest : BaseUseCase
public class UseCaseTest : BaseUseCase
{
private Func<VonageHttpClientConfiguration, Task<Result<Archive>>> Operation =>
configuration => new ArchiveClient(configuration).StopArchiveAsync(this.request);

private readonly Result<StopArchiveRequest> request;

public StopArchiveTest() => this.request = BuildRequest(this.Helper.Fixture);
public UseCaseTest() => this.request = BuildRequest(this.Helper.Fixture);

[Property]
public Property ShouldReturnFailure_GivenApiErrorCannotBeParsed() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

namespace Vonage.Server.Test.Video.Broadcast.AddStreamToBroadcast
{
public class AddStreamToBroadcastRequestBuilderTest
public class RequestBuilderTest
{
private readonly Guid applicationId;
private readonly Guid streamId;
private readonly Guid broadcastId;

public AddStreamToBroadcastRequestBuilderTest()
public RequestBuilderTest()
{
var fixture = new Fixture();
this.applicationId = fixture.Create<Guid>();
Expand Down
Loading

0 comments on commit e31700e

Please sign in to comment.