Beispiel #1
0
        private void GivenTheConfigurationIs(IInternalConfiguration config)
        {
            var response = new Responses.OkResponse <IInternalConfiguration>(config);

            _configRepo
            .Setup(x => x.Get()).Returns(response);
        }
Beispiel #2
0
        private void GivenTheConfigurationIs(IOcelotConfiguration config)
        {
            var response = new Responses.OkResponse <IOcelotConfiguration>(config);

            _provider
            .Setup(x => x.Get()).ReturnsAsync(response);
        }
Beispiel #3
0
        public void should_get_file_configuration()
        {
            var expected = new Responses.OkResponse <FileConfiguration>(new FileConfiguration());

            this.Given(x => x.GivenTheGetConfigurationReturns(expected))
            .When(x => x.WhenIGetTheFileConfiguration())
            .Then(x => x.TheTheGetFileConfigurationIsCalledCorrectly())
            .BDDfy();
        }