feat: add class for representing batch statuses

This commit is contained in:
Stevan Freeborn
2025-01-08 22:46:17 -06:00
parent 779a5ca281
commit f8e01bf487
2 changed files with 44 additions and 0 deletions
@@ -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");
}
}