Beispiel #1
0
 public static void Setup()
 {
     TypeMap.Register.Singleton <IRuntimeEnvironment>(() => new FakeRuntimeEnvironment());
     TypeMap.Register.Singleton <IPortableFactory>(() => new PortableFactory());
     TypeMap.Register.Singleton <CryptoFactory>(() => SetupAssembly.CreateCryptoFactory());
     TypeMap.Register.New <HMACSHA512>(() => PortableFactory.HMACSHA512());
     TypeMap.Register.New <ICryptoPolicy>(() => new ProCryptoPolicy());
     TypeMap.Register.New <Aes>(() => PortableFactory.AesManaged());
 }