Skip to content

Commit

Permalink
feat: base structure for CreateConversation in Conversations API
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d committed Dec 5, 2023
1 parent 0573876 commit b401dc7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Vonage.Test.Unit/Conversations/CreateConversation/RequestTest.cs
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");
}
}
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";
}

0 comments on commit b401dc7

Please sign in to comment.