Exemple #1
0
        public void Init()
        {
            _fakeRepository    = new Mock <IDeliveryCappingGroupRepository>();
            _fakeRunRepository = new Mock <IRunRepository>();
            _mapper            = AutoMapperInitializer.Initialize(Configuration.AutoMapperConfig.SetupAutoMapper);
            _fixture           = new Fixture();

            _validModel            = CreateValidModel();
            _deliveryCappingGroups = CreateDeliveryCappingGroups(2);

            _validator  = new DeliveryCappingGroupValidator(DeliveryCappingGroupValidationAutofacRegistration.GetValidation(_fakeRepository.Object));
            _controller = new DeliveryCappingGroupController(_fakeRepository.Object, _fakeRunRepository.Object, _validator, _mapper);
        }
 protected virtual void AssumeTargetIsInitialized()
 {
     _repositoryMock = new Mock <IDeliveryCappingGroupRepository>();
     _validation     = DeliveryCappingGroupValidationAutofacRegistration.GetValidation(_repositoryMock.Object);
 }