public void Setup()
        {
            _repo          = NSubstitute.Substitute.For <IProfilePatternRepository>();
            _cacheProvider = Substitute.For <ICacheProvider>();
            _logger        = Substitute.For <ILogger>();

            _service = new CalculateProfileService(
                _repo,
                _cacheProvider,
                new Mock <IValidator <ProfileBatchRequest> >().Object,
                _logger,
                new ProfilingResiliencePolicies
            {
                Caching = Policy.NoOpAsync(),
                ProfilePatternRepository = Policy.NoOpAsync()
            },
                new Mock <IProducerConsumerFactory>().Object,
                new FundingValueProfiler());
        }
        public void SetUp()
        {
            _profilePatterns        = new Mock <IProfilePatternRepository>();
            _cache                  = new Mock <ICacheProvider>();
            _batchRequestValidation = new Mock <IValidator <ProfileBatchRequest> >();
            _fundingValueProfiler   = new Mock <IFundingValueProfiler>();

            _service = new CalculateProfileService(_profilePatterns.Object,
                                                   _cache.Object,
                                                   _batchRequestValidation.Object,
                                                   Logger.None,
                                                   new ProfilingResiliencePolicies
            {
                Caching = Policy.NoOpAsync(),
                ProfilePatternRepository = Policy.NoOpAsync()
            },
                                                   new ProducerConsumerFactory(),
                                                   _fundingValueProfiler.Object);
        }