git config --global user.name "Christopher Snay"
Save git credentials
git config --global credential.helper store
How to mock IConfiguration
var configuration = new Mock<IConfiguration>();
var configurationSection = new Mock<IConfigurationSection>();
configurationSection.Setup(a => a.Value).Returns("testvalue");
configuration.Setup(a => a.GetSection("TestValueKey")).Returns(configurationSection.Object);
Mock any implementation of a generic interface with one declaration.
services.AddTransient(typeof(IGenericInterface<>), typeof(GenericClass<>));