-
Notifications
You must be signed in to change notification settings - Fork 0
NSG.Library
Phil Huhn edited this page Apr 30, 2018
·
2 revisions
Welcome to the NSG.Library wiki
This solution contains three .Net projects as follows:
- A collection of support helper library (NSG.Library.Helpers),
- A simple in memory logging and logging interface (NSG.Library.Logger),
- An e-mailing utility (NSG.Library.EMail).
- Always operate with least privileges (not as an administrator),
- I downloaded the master zip by the Clone or Download pull-down on the root folder of NSG.Library. I copied NSG.Library-master folder and pasted the folder to my development folder.
- I renamed NSG.Library-master to NSG.Library.
- SMTP mock (by fake-smtp-server):
- Downloaded the nodejs fake-smtp-server to mock sending e-mail. For more information see [fake-smtp-server](https://github.com/ReachFive/fake-smtp-server).
- npm install fake-smtp-server -g
- From Windows Explorer right clicked fake-smtp.bat, and unblock the access.
- Edit the fake-smtp.bat file and verify it is OK to execute.
- From Windows Explorer clicked fake-smtp.bat, and launch the fake-smtp-server. Browse to the configured port (localhost:10080).
- From Windows Explorer clicked NSG.Library.sln, and launch Visual Studio 2017. I use the Community edition.
- If desired create an account with SendGrid and configure the NSG.Library_Tests app.config key Email:ApiKey value with your API key.
- From Visual Studio 2017 go into each project and set the build version desired (.Net Framework 4.6.1 default).
- From Visual Studio 2017 build the solution.
- Run the unit tests (if the SendGrid is not configured then 2 tests will fail).