public void SetUp()
        {
            _cosmosRepository = new Mock <ICosmosRepository>();

            _repository = new PublishedFundingUndoCosmosRepository(new ResiliencePolicies
            {
                PublishedFundingRepository = Policy.NoOpAsync()
            },
                                                                   _cosmosRepository.Object);
        }
Esempio n. 2
0
        public void SetUp()
        {
            _configuration = new ConfigurationBuilder()
                             .AddUserSecrets("df0d69d5-a6db-4598-909f-262fc39cb8c8")
                             .Build();

            CosmosDbSettings cosmosDbSettings = new CosmosDbSettings();

            _configuration.Bind("CosmosDbSettings", cosmosDbSettings);

            cosmosDbSettings.ContainerName = "publishedfunding-copy";

            _repository = new PublishedFundingUndoCosmosRepository(new ResiliencePolicies
            {
                PublishedFundingRepository = Policy.NoOpAsync()
            }, new CosmosRepository(cosmosDbSettings));
        }