Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.3 (Unreleased)

## 1.0.0-beta.2 (2021-02-11)
- Reflect minor REST API improvements.
- Make more classes mockable.

## 1.0.0-beta.1 (2021-02-10)
- Initial version of client.
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,10 @@ public async override ValueTask<Response<AssetConversion>> WaitForCompletionAsyn
}
return _response;
}

/// <summary> Initializes a new instance of AssetConversionOperation for mocking. </summary>
protected AssetConversionOperation()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Azure.MixedReality.RemoteRendering
{
/// <summary>
/// Model factory that enables mocking for the Remote Rendering library.
/// </summary>
public static class RemoteRenderingModelFactory
{
/// <summary>
/// Initializes a new instance of the <see cref="AssetConversionOutput"/> class for mocking purposes.
/// </summary>
public static AssetConversionOutput AssetConversionOutput(Uri outputAssetUri)
=> new AssetConversionOutput(outputAssetUri.ToString());

/// <summary>
/// Initializes a new instance of the <see cref="RemoteRenderingServiceError"/> class for mocking purposes.
/// </summary>
public static RemoteRenderingServiceError RemoteRenderingServiceError(string code, string message, IReadOnlyList<RemoteRenderingServiceError> details, string target, RemoteRenderingServiceError innerError)
=> new RemoteRenderingServiceError(code, message, details, target, innerError);

/// <summary>
/// Initializes a new instance of the <see cref="AssetConversion"/> class for mocking purposes.
/// </summary>
public static AssetConversion AssetConversion(string conversionId, AssetConversionOptions options, AssetConversionOutput output, RemoteRenderingServiceError error, AssetConversionStatus status, DateTimeOffset createdOn)
=> new AssetConversion(conversionId, options, output, error, status, createdOn);

/// <summary>
/// Initializes a new instance of the <see cref="RenderingSession"/> class for mocking purposes.
/// </summary>
public static RenderingSession RenderingSession(string sessionId, int? arrInspectorPort, int? handshakePort, int? elapsedTimeMinutes, string host, int? maxLeaseTimeMinutes, RenderingServerSize size, RenderingSessionStatus status, float? teraflops, RemoteRenderingServiceError error, DateTimeOffset? createdOn)
=> new RenderingSession(sessionId, arrInspectorPort, handshakePort, elapsedTimeMinutes, host, maxLeaseTimeMinutes, size, status, teraflops, error, createdOn);
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading