Skip to content

Commit

Permalink
Made edits to the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mudiagaobrikisil committed Oct 24, 2024
1 parent 3ca47ac commit 678f03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Serval/src/Serval.Translation/Models/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ public record Build : IEntity
public JobState State { get; init; } = JobState.Pending;
public DateTime? DateFinished { get; init; }
public IReadOnlyDictionary<string, object>? Options { get; init; }
public string? DeploymentVersion { get; set; } = "Unknown";
public string? DeploymentVersion { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,8 @@ public class TestEnvironment : DisposableBase
{
private readonly IServiceScope _scope;
private readonly MongoClient _mongoClient;
public readonly IOptionsMonitor<ApiOptions> ApiOptions;

// public readonly IOptionsMonitor<ApiOptions> ApiOptions;

public TestEnvironment()
{
Expand All @@ -2008,7 +2009,7 @@ public TestEnvironment()
Factory = new ServalWebApplicationFactory();
_scope = Factory.Services.CreateScope();
Engines = _scope.ServiceProvider.GetRequiredService<IRepository<Engine>>();
ApiOptions = _scope.ServiceProvider.GetRequiredService<IOptionsMonitor<ApiOptions>>();
// ApiOptions = _scope.ServiceProvider.GetRequiredService<IOptionsMonitor<ApiOptions>>();
DataFiles = _scope.ServiceProvider.GetRequiredService<IRepository<DataFiles.Models.DataFile>>();
Corpora = _scope.ServiceProvider.GetRequiredService<IRepository<DataFiles.Models.Corpus>>();
Pretranslations = _scope.ServiceProvider.GetRequiredService<
Expand Down

0 comments on commit 678f03a

Please sign in to comment.