Skip to content

Instantly share code, notes, and snippets.

@kulvirTAC
Last active May 15, 2023 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kulvirTAC/c1c64f4dde29f20f3f0c0d465f5d2184 to your computer and use it in GitHub Desktop.
Save kulvirTAC/c1c64f4dde29f20f3f0c0d465f5d2184 to your computer and use it in GitHub Desktop.
Unit Test Order
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