feat: add class for representing batch statuses
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
namespace AnthropicClient.Models;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents the status of a message batch.
|
||||||
|
/// </summary>
|
||||||
|
public static class MessageBatchStatus
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The status of a message batch that is being canceled.
|
||||||
|
/// </summary>
|
||||||
|
public const string Canceling = "canceling";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The status of a message batch that is in progress.
|
||||||
|
/// </summary>
|
||||||
|
public const string InProgress = "in_progress";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The status of a message batch that has ended.
|
||||||
|
/// </summary>
|
||||||
|
public const string Ended = "ended";
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
namespace AnthropicClient.Tests.Unit.Models;
|
||||||
|
|
||||||
|
public class MessageBatchStatusTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void Canceling_WhenCalled_ItShouldReturnCancelingStatus()
|
||||||
|
{
|
||||||
|
MessageBatchStatus.Canceling.Should().Be("canceling");
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void InProgress_WhenCalled_ItShouldReturnCancelingStatus()
|
||||||
|
{
|
||||||
|
MessageBatchStatus.InProgress.Should().Be("in_progress");
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Ended_WhenCalled_ItShouldReturnCancelingStatus()
|
||||||
|
{
|
||||||
|
MessageBatchStatus.Ended.Should().Be("ended");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user