------ Test started: Assembly: MyCompany.Data.Testing.dll ------
TestCase
'MyCompany.Data.Testing.OffersTest.GetOffersWithIncludedApplications'
failed: TestFixtureSetUp failed in OffersTest
TestFixture failed:
Castle.MicroKernel.ComponentActivator.ComponentActivatorException :
ComponentActivator: could not instantiate MyCompany.Data.NHFactory
----> System.Reflection.TargetInvocationException : Exception has
been thrown by the target of an invocation.
----> System.NotSupportedException : Can't figure out what the other
side of the many-to-many property 'Applications' should be.
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance
(CreationContext context, Object[] arguments, Type[] signature)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate
(CreationContext context)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate
(CreationContext context)
at
Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create
(CreationContext context)
at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve
(CreationContext context)
at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve
(CreationContext context)
at Castle.MicroKernel.Handlers.DefaultHandler.Resolve
(CreationContext context)
at
Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveServiceDependency
(CreationContext context, ComponentModel model, DependencyModel
dependency)
at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve
(CreationContext context, ISubDependencyResolver
contextHandlerResolver, ComponentModel model, DependencyModel
dependency)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments
(ConstructorCandidate constructor, CreationContext context, Type[]&
signature)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate
(CreationContext context)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate
(CreationContext context)
at
Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create
(CreationContext context)
at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve
(CreationContext context)
at Castle.MicroKernel.Handlers.DefaultHandler.Resolve
(CreationContext context)
at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler
handler, Type service, IDictionary additionalArguments)
at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler
handler, Type service)
at Castle.MicroKernel.DefaultKernel.get_Item(Type service)
at Castle.Windsor.WindsorContainer.Resolve(Type service)
at Castle.Windsor.WindsorContainer.get_Item(Type service)
at MyCompany.Toolkit.Reflection.ObjectFactory.Create[T](Boolean
isErrorThrown) in C:\Development\dev\Toolkit\Toolkit.Shared\Reflection
\ObjectFactory.cs:line 124
at MyCompany.Toolkit.Reflection.ObjectFactory.Create[T]() in C:
\Development\dev\Toolkit\Toolkit.Shared\Reflection
\ObjectFactory.cs:line 117
at MyCompany.Toolkit.Testing.Utilities.DataTestCase..ctor() in C:
\Development\dev\Toolkit\Toolkit.Testing\Utilities\TestCase.cs:line 92
at MyCompany.Data.Testing.OffersTest..ctor() in C:\Development\dev
\Data\Data.Testing\OffersTest.cs:line 30
--TargetInvocationException
at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes
methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object
[] arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[]
parameters)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.FastCreateInstance
(Type implType, Object[] arguments, Type[] signature)
at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance
(CreationContext context, Object[] arguments, Type[] signature)
--NotSupportedException
at
FluentNHibernate.MappingModel.BiDirectionalManyToManyPairingVisitor.ProcessCollection
(ICollectionMapping mapping)
at
FluentNHibernate.MappingModel.DefaultMappingModelVisitor.ProcessBag
(BagMapping bagMapping)
at
FluentNHibernate.MappingModel.Collections.BagMapping.AcceptVisitor
(IMappingModelVisitor visitor)
at FluentNHibernate.MappingModel.DefaultMappingModelVisitor.Visit
(ICollectionMapping collectionMapping)
at FluentNHibernate.MappingModel.MappedMembers.AcceptVisitor
(IMappingModelVisitor visitor)
at
FluentNHibernate.MappingModel.ClassBased.ClassMappingBase.AcceptVisitor
(IMappingModelVisitor visitor)
at
FluentNHibernate.MappingModel.ClassBased.ClassMapping.AcceptVisitor
(IMappingModelVisitor visitor)
at FluentNHibernate.MappingModel.DefaultMappingModelVisitor.Visit
(ClassMapping classMapping)
at FluentNHibernate.MappingModel.HibernateMapping.AcceptVisitor
(IMappingModelVisitor visitor)
at FluentNHibernate.PersistenceModel.ApplyVisitors(IEnumerable`1
mappings)
at FluentNHibernate.PersistenceModel.BuildMappings()
at FluentNHibernate.PersistenceModel.EnsureMappingsBuilt()
at FluentNHibernate.PersistenceModel.Configure(Configuration cfg)
at FluentNHibernate.Automapping.AutoPersistenceModel.Configure
(Configuration configuration)
at MyCompany.Data.NHFactory..ctor(String key, String configuration,
String mappings, Boolean isProfiled, Boolean isexported) in C:
\Development\dev\Data\Data.NHibernate\NHFactory.cs:line 154
at MyCompany.Data.NHFactory..ctor(String key, String configuration,
Boolean isProfiled) in C:\Development\dev\Data\Data.NHibernate
\NHFactory.cs:line 39
DEBUG [NHFactory:oracle] - Profiler initialized
DEBUG [NHFactory:oracle] - Configuration initialized
0 passed, 1 failed, 0 skipped, took 3.34 seconds (NUnit 2.5.2).
> > <
nhusers%2Bunsu...@googlegroups.com<nhusers%252Bunsubscribe@googlegroup
s.com>>