public void SetUp()
        {
            PluginCache.ResetAll();

            _locator   = new RhinoMocksAAAServiceLocator();
            _container = new AutoMockedContainer(_locator);
        }
        public void SetFilledTypes_3()
        {
            PluginCache.ResetAll();
            PluginCache.AddFilledType(typeof(IGateway));

            Plugin plugin = PluginCache.GetPlugin(typeof(ClassWithProperties));

            plugin.Setters.IsMandatory("Engine").ShouldBeFalse();
            plugin.Setters.IsMandatory("Car").ShouldBeFalse();
            plugin.Setters.IsMandatory("Gateway").ShouldBeTrue();
        }
Exemplo n.º 3
0
        public void SetUp()
        {
            PluginCache.ResetAll();
            builder  = PluginCache.FindBuilder(typeof(ClassWithMixOfSetters));
            instance = new SmartInstance <ClassWithMixOfSetters>().WithCtorArg("Age").EqualTo(34);
            _session = new BuildSession();

            TheDefaultGateway = new DefaultGateway();
            _session.RegisterDefault(typeof(IGateway), TheDefaultGateway);

            _target = null;
        }
 public void SetUp()
 {
     PluginCache.ResetAll();
 }