File tree 1 file changed +11
-14
lines changed
src/Testcontainers.Oracle
1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,17 @@ private OracleBuilder(OracleConfiguration resourceConfiguration)
36
36
/// <inheritdoc />
37
37
protected override OracleConfiguration DockerResourceConfiguration { get ; }
38
38
39
+ /// <summary>
40
+ /// Sets the Oracle username.
41
+ /// </summary>
42
+ /// <param name="username">The Oracle username.</param>
43
+ /// <returns>A configured instance of <see cref="OracleBuilder" />.</returns>
44
+ public OracleBuilder WithUsername ( string username )
45
+ {
46
+ return Merge ( DockerResourceConfiguration , new OracleConfiguration ( username : username ) )
47
+ . WithEnvironment ( "APP_USER" , username ) ;
48
+ }
49
+
39
50
/// <summary>
40
51
/// Sets the Oracle password.
41
52
/// </summary>
@@ -108,20 +119,6 @@ private OracleBuilder WithDatabase(string database)
108
119
return Merge ( DockerResourceConfiguration , new OracleConfiguration ( database : database ) ) ;
109
120
}
110
121
111
- /// <summary>
112
- /// Sets the Oracle username.
113
- /// </summary>
114
- /// <remarks>
115
- /// The Docker image does not allow to configure the username.
116
- /// </remarks>
117
- /// <param name="username">The Oracle username.</param>
118
- /// <returns>A configured instance of <see cref="OracleBuilder" />.</returns>
119
- private OracleBuilder WithUsername ( string username )
120
- {
121
- return Merge ( DockerResourceConfiguration , new OracleConfiguration ( username : username ) )
122
- . WithEnvironment ( "APP_USER" , username ) ;
123
- }
124
-
125
122
/// <inheritdoc cref="IWaitUntil" />
126
123
private sealed class WaitUntil : IWaitUntil
127
124
{
You can’t perform that action at this time.
0 commit comments