Commit Graph
12 Commits
Author SHA1 Message Date
David Barker 80b35e3baf Add appsettings config load for tests
Enables the config to be changed outside of the test
appsettings.local.json is not checked into the repo
2020-01-24 12:57:51 +08:00
David Barker f1265ec3df add razor runtime compilation for development environment 2020-01-24 10:32:54 +08:00
David Barker c59d7017f8 added launch for VS Code 2020-01-24 10:22:39 +08:00
David Barker 9f4c5668bd Upgraded to dotnetcore 3.1
as per migration recommendations
2020-01-24 10:21:11 +08:00
David Barker 41ea9aac8f add vs code launch settings 2020-01-24 09:43:04 +08:00
David Barker 811d543d35 Changed IHostingEnvironment to IWebHostEnvironment
Added insights telemetry to configure services
Added local settings json for storing localised settings
2020-01-24 09:42:50 +08:00
David Barker 59213089ed Migrated main to 3.1 format 2020-01-24 09:30:34 +08:00
David Barker b58edfadfc remove the AspNetCore assemblies as these are no longer needed 2020-01-24 09:25:51 +08:00
David Barker d078e256c8 remove comments from json file 2020-01-24 09:25:31 +08:00
David Barker d7fdd1fe58 Added appsettings.local.json to ignore file
This file can be used to override local settings
like the connection string.
2020-01-24 09:25:18 +08:00
David Barker d5ae41844f Fixed build issue in LoggerFactory 2020-01-23 22:54:02 +08:00
David Barker b9491256b0 - Used the work from @knight1219 (Daniel Mathews) as the basis.
* Fixed the unit tests so that they are now passing.
Note: This is my first real introduction to Moq, so there are probably a few things that can be improved.

Changes:
* Had a few issues with the mock logger, ended up adding a LoggerFactory and Logger implementation to work around this issue (for some reason the mock logger was never called and the unit tests failed because the string builder was never updated).
* Accommodated changes to the SignInManager, UserManager where the latest version has added Logging to constructor
* SecurityStamp functions in UserManager now check for null and throws an exception, so the unit tests can no longer call GetSecurityStampAsync before its set. Line 866: https://github.com/dotnet/aspnetcore/blame/605c522fa3e875fd6d3aefa783a71d1745b7e4c7/src/Identity/Extensions.Core/src/UserManager.cs
* SignInManager.RefreshSignInAsync has changed the internal method from s.SignInAsync to SignInWithClaimsAsync
2020-01-23 22:46:35 +08:00