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"); }
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(); }