public void Init() { _fakeBrsConfigurationTemplateRepository = new Mock <IBRSConfigurationTemplateRepository>(); _fakeTenantSettingsRepository = new Mock <ITenantSettingsRepository>(); _fakeRunRepository = new Mock <IRunRepository>(); _fakeScenarioRepository = new Mock <IScenarioRepository>(); _fakeSalesAreaRepository = new Mock <ISalesAreaRepository>(); _fakeCampaignRepository = new Mock <ICampaignRepository>(); _fakeDemographicRepository = new Mock <IDemographicRepository>(); _fakeDeliveryCappingGroupRepository = new Mock <IDeliveryCappingGroupRepository>(); _fakeFeatureManager = new Mock <IFeatureManager>(); _fakeRunTypeRepository = new Mock <IRunTypeRepository>(); _fakeAnalysisGroupRepository = new Mock <IAnalysisGroupRepository>(); _mapper = AutoMapperInitializer.Initialize(AutoMapperConfig.SetupAutoMapper); _runsValidator = new RunsValidator( _fakeBrsConfigurationTemplateRepository.Object, _fakeTenantSettingsRepository.Object, _fakeRunRepository.Object, _fakeScenarioRepository.Object, _fakeSalesAreaRepository.Object, _fakeCampaignRepository.Object, _fakeDemographicRepository.Object, _fakeDeliveryCappingGroupRepository.Object, _fakeFeatureManager.Object, _fakeRunTypeRepository.Object, _fakeAnalysisGroupRepository.Object, _mapper); }
public void Cleanup() { _runsValidator = null; _mapper = null; }