Last active
May 15, 2023 20:38
-
-
Save kulvirTAC/c1c64f4dde29f20f3f0c0d465f5d2184 to your computer and use it in GitHub Desktop.
Unit Test Order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public UnitTestOrder(ITestOutputHelper output) | |
{ | |
this.output = output; | |
var config = new ConfigurationBuilder() | |
.SetBasePath(Directory.GetCurrentDirectory()) | |
.AddUserSecrets<UnitTestOrder>() | |
.AddEnvironmentVariables() | |
.Build(); | |
try | |
{ | |
service = new AcumaticaRestService( | |
config["AcumaticaBaseUrl"], | |
config["AcumaticaUserName"], | |
config["Password"], | |
config["Company"], | |
config["Branch"], | |
config["Locale"]); | |
output.WriteLine("Login successful"); | |
} | |
catch (HttpRequestException exc) | |
{ | |
output.WriteLine(exc.Message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment