Version 3.0.375

This commit is contained in:
Anja 2023-11-06 12:23:09 +01:00
parent 2c790239cb
commit ca080c87c0
194 changed files with 10092 additions and 10464 deletions

View file

@ -107,9 +107,14 @@ namespace TestFramework.Repository
/// <summary>
/// Gets list of bikes from memory.
/// </summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <returns></returns>
public async Task<BikesAvailableResponse> GetBikesAvailableAsync()
=> await Task.Run(() => GetBikesAvailable(BikesAvailableResponse, null, SessionCookie));
public async Task<BikesAvailableResponse> GetBikesAvailableAsync(Uri operatorUri = null)
=> await Task.Run(() => GetBikesAvailable(
BikesAvailableResponse,
null /* merchant id*/,
SessionCookie,
operatorUri));
/// <summary>
/// Gets a list of bikes reserved/ booked by active user from Copri.
@ -201,14 +206,14 @@ namespace TestFramework.Repository
/// Gets list of bikes from memory.
/// </summary>
/// <param name="merchantId">Id of the merchant.</param>
/// <param name="p_strSessionCookie">Auto cookie of user if user is logged in.</param>
/// <param name="p_eSampleSet">Set of samples.</param>
/// <param name="p_lStageIndex">Index of the stage.</param>
/// <param name="sessionCookie">Auto cookie of user if user is logged in.</param>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <returns></returns>
public static BikesAvailableResponse GetBikesAvailable(
string BikesAvailableResponse,
string merchantId,
string p_strSessionCookie = null) =>
string sessionCookie = null,
Uri operatorUri = null) =>
CopriCallsStatic.DeserializeResponse<BikesAvailableResponse>(BikesAvailableResponse);
/// <summary>

View file

@ -45,7 +45,10 @@ namespace TestFramework.Repository
return;
}
public void AddToCache(BikesAvailableResponse bikes)
/// <summary> Adds a bikes response to cache.</summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <param name="bikes">Bikes to add.</param>
public void AddToCache(BikesAvailableResponse bikes, Uri operatorUri = null)
{
return;
}
@ -122,10 +125,11 @@ namespace TestFramework.Repository
public Task<ResponseBase> DoSubmitMiniSurvey(IDictionary<string, string> answers)
=> throw new NotImplementedException();
public Task<BikesAvailableResponse> GetBikesAvailableAsync()
{
return server.GetBikesAvailableAsync();
}
/// <summary> Gets a list of bikes from Copri. </summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <returns>Response holding list of bikes.</returns>
public Task<BikesAvailableResponse> GetBikesAvailableAsync(Uri operatorUri = null)
=> server.GetBikesAvailableAsync(operatorUri);
public Task<BikesReservedOccupiedResponse> GetBikesOccupiedAsync()
{

View file

@ -37,7 +37,10 @@ namespace TestFramework.Repository
return;
}
public void AddToCache(BikesAvailableResponse bikes)
/// <summary> Adds a bikes response to cache.</summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <param name="bikes">Bikes to add.</param>
public void AddToCache(BikesAvailableResponse bikes, Uri operatorUri = null)
{
return;
}
@ -109,10 +112,11 @@ namespace TestFramework.Repository
public Task<ResponseBase> DoSubmitMiniSurvey(IDictionary<string, string> answers)
=> throw new NotImplementedException();
public Task<BikesAvailableResponse> GetBikesAvailableAsync()
{
return server.GetBikesAvailableAsync();
}
/// <summary> Gets a list of bikes from Copri. </summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <returns>Response holding list of bikes.</returns>
public Task<BikesAvailableResponse> GetBikesAvailableAsync(Uri operatorUri = null)
=> server.GetBikesAvailableAsync(operatorUri);
public Task<BikesReservedOccupiedResponse> GetBikesOccupiedAsync()
{

View file

@ -36,7 +36,10 @@ namespace TestFramework.Repository
return;
}
public void AddToCache(BikesAvailableResponse bikes)
/// <summary> Adds a bikes response to cache.</summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <param name="bikes">Bikes to add.</param>
public void AddToCache(BikesAvailableResponse bikes, Uri operatorUri = null)
{
return;
}
@ -108,10 +111,11 @@ namespace TestFramework.Repository
public Task<ResponseBase> DoSubmitMiniSurvey(IDictionary<string, string> answers)
=> throw new NotImplementedException();
public Task<BikesAvailableResponse> GetBikesAvailableAsync()
{
return server.GetBikesAvailableAsync();
}
/// <summary> Gets a list of bikes from Copri. </summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <returns>Response holding list of bikes.</returns>
public Task<BikesAvailableResponse> GetBikesAvailableAsync(Uri operatorUri = null)
=> server.GetBikesAvailableAsync(operatorUri);
public Task<BikesReservedOccupiedResponse> GetBikesOccupiedAsync()
{

View file

@ -91,10 +91,11 @@ namespace TestFramework.Repository
public Task<ResponseBase> DoSubmitMiniSurvey(IDictionary<string, string> answers)
=> throw new NotImplementedException();
public Task<BikesAvailableResponse> GetBikesAvailableAsync()
{
throw ExceptionFactory($"Simulated error thrown at {nameof(GetBikesAvailableAsync)}.");
}
/// <summary> Gets a list of bikes from Copri. </summary>
/// <param name="operatorUri">Uri of the operator host to get bikes from or null if bikes have to be gotten form primary host.</param>
/// <returns>Response holding list of bikes.</returns>
public Task<BikesAvailableResponse> GetBikesAvailableAsync(Uri operatorUri = null)
=> throw ExceptionFactory($"Simulated error thrown at {nameof(GetBikesAvailableAsync)}.");
public Task<BikesReservedOccupiedResponse> GetBikesOccupiedAsync()
{