Exemplo n.º 1
0
 public virtual void SetupContainer()
 {
     Adapter.Container = Adapter.CreateContainer();
     Adapter.RegisterType(typeof(Poco), null);
     Adapter.RegisterTypeMapping(typeof(IService), typeof(Service), null);
     Adapter.RegisterTypeMapping(typeof(IService), typeof(Service), "1");
     Adapter.RegisterTypeMapping(typeof(IService), typeof(Service), "2");
 }
Exemplo n.º 2
0
        public void Setup()
        {
            var type = Assembly.LoadFrom($"..\\{Version}.Adapter\\{Version}.Adapter.dll")
                       .GetType($"{Version}.Adapter.TestAdapter");

            Adapter           = (ITestAdapter)Activator.CreateInstance(type);
            Adapter.Container = Adapter.CreateContainer();
        }