public void Resolve() { var container = CreateContainer(); var meConfig = new SimpleMappingEngineConfiguration(container); meConfig.Configure(); var config = new PersonConfiguration(container); config.Configure(); var validator = container.Resolve<IMapper<EnergyTrading.MDM.Contracts.Sample.Person, Person>>(); // Assert Assert.IsNotNull(validator, "Mapper resolution failed"); }
public void Resolve() { var container = CreateContainer(); var meConfig = new SimpleMappingEngineConfiguration(container); meConfig.Configure(); var config = new PersonConfiguration(container); config.Configure(); var validator = container.Resolve <IMapper <EnergyTrading.MDM.Contracts.Sample.Person, Person> >(); // Assert Assert.IsNotNull(validator, "Mapper resolution failed"); }
public void ValidatorResolution() { var container = CreateContainer(); var meConfig = new SimpleMappingEngineConfiguration(container); meConfig.Configure(); container.RegisterInstance <IRepository>(new Mock <IRepository>().Object); var config = new PersonConfiguration(container); config.Configure(); var validator = container.Resolve <IValidator <EnergyTrading.MDM.Contracts.Sample.Person> >("person"); // Assert Assert.IsNotNull(validator, "Validator resolution failed"); }
public void ValidatorResolution() { var container = CreateContainer(); var meConfig = new SimpleMappingEngineConfiguration(container); meConfig.Configure(); container.RegisterInstance<IRepository>(new Mock<IRepository>().Object); var config = new PersonConfiguration(container); config.Configure(); var validator = container.Resolve<IValidator<EnergyTrading.MDM.Contracts.Sample.Person>>("person"); // Assert Assert.IsNotNull(validator, "Validator resolution failed"); }