public void NoDefaultConstructor() { Assert.ThrowsException <TypeInitializationException>(() => Ambient.GetService <INoDefaultConstructor>()); }
public void NonInterfaceType() { AmbientService <DefaultTest> defaultTest = Ambient.GetService <DefaultTest>(); DefaultTest test = defaultTest.Global; }
static SetupApplication() { AmbientService <IAmbientSettingsSet> SettingsSet = Ambient.GetService <IAmbientSettingsSet>(); SettingsSet.Global = new AppConfigAmbientSettings(); }