-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: base structure for CreateConversation in Conversations API
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
Vonage.Test.Unit/Conversations/CreateConversation/RequestTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using FluentAssertions; | ||
using Vonage.Conversations.CreateConversation; | ||
using Xunit; | ||
|
||
namespace Vonage.Test.Unit.Conversations.CreateConversation | ||
{ | ||
public class RequestTest | ||
{ | ||
[Fact] | ||
public void GetEndpointPath_ShouldReturnApiEndpoint() => | ||
new CreateConversationRequest() | ||
.GetEndpointPath() | ||
.Should() | ||
.Be("/v1/conversations"); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
Vonage/Conversations/CreateConversation/CreateConversationRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Net.Http; | ||
using Vonage.Common.Client; | ||
|
||
namespace Vonage.Conversations.CreateConversation; | ||
|
||
/// <inheritdoc /> | ||
public readonly struct CreateConversationRequest : IVonageRequest | ||
{ | ||
/// <inheritdoc /> | ||
public HttpRequestMessage BuildRequestMessage() => throw new NotImplementedException(); | ||
|
||
/// <inheritdoc /> | ||
public string GetEndpointPath() => "/v1/conversations"; | ||
} |