-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using Google.Protobuf.WellKnownTypes; | ||
using MassTransit; | ||
using Serval.Translation.V1; | ||
using SIL.ObjectModel; | ||
|
||
namespace Serval.Translation.Services; | ||
|
||
[TestFixture] | ||
public class PlatformServiceTests | ||
{ | ||
[Test] | ||
public async Task TestBuildStateTransitionsAsync() { } | ||
Check warning on line 12 in tests/Serval.Translation.Tests/Services/PlatformServiceTests.cs GitHub Actions / Build
Check warning on line 12 in tests/Serval.Translation.Tests/Services/PlatformServiceTests.cs GitHub Actions / Build
|
||
|
||
[Test] | ||
public async Task UpdateBuildStatusAsync() { } | ||
Check warning on line 15 in tests/Serval.Translation.Tests/Services/PlatformServiceTests.cs GitHub Actions / Build
Check warning on line 15 in tests/Serval.Translation.Tests/Services/PlatformServiceTests.cs GitHub Actions / Build
|
||
|
||
[Test] | ||
public async Task IncrementCorpusSizeAsync() { } | ||
Check warning on line 18 in tests/Serval.Translation.Tests/Services/PlatformServiceTests.cs GitHub Actions / Build
Check warning on line 18 in tests/Serval.Translation.Tests/Services/PlatformServiceTests.cs GitHub Actions / Build
|
||
|
||
private class TestEnvironment | ||
{ | ||
public TestEnvironment() | ||
{ | ||
Builds = new MemoryRepository<Build>(); | ||
Engines = new MemoryRepository<Engine>(); | ||
Pretranslations = new MemoryRepository<Pretranslation>(); | ||
DataAccessContext = Substitute.For<IDataAccessContext>(); | ||
PublishEndpoint = Substitute.For<IPublishEndpoint>(); | ||
ServerCallContext = Substitute.For<ServerCallContext>(); | ||
} | ||
|
||
public IRepository<Build> Builds { get; } | ||
public IRepository<Engine> Engines { get; } | ||
public IRepository<Pretranslation> Pretranslations { get; } | ||
public IDataAccessContext DataAccessContext { get; } | ||
public IPublishEndpoint PublishEndpoint { get; } | ||
public ServerCallContext ServerCallContext { get; } | ||
} | ||
} |