private void GivenTheDependenciesAreSetUpCorrectly() { _rro = new ReRouteOptions(false, false, false, false, false); _requestId = "testy"; _rrk = "besty"; _upt = new UpstreamPathTemplateBuilder().Build(); _ao = new AuthenticationOptionsBuilder().Build(); _ctt = new List <ClaimToThing>(); _qoso = new QoSOptionsBuilder().Build(); _rlo = new RateLimitOptionsBuilder().Build(); _region = "vesty"; _hho = new HttpHandlerOptionsBuilder().Build(); _ht = new HeaderTransformations(new List <HeaderFindAndReplace>(), new List <HeaderFindAndReplace>(), new List <AddHeader>(), new List <AddHeader>()); _dhp = new List <DownstreamHostAndPort>(); _lbo = new LoadBalancerOptionsBuilder().Build(); _rroCreator.Setup(x => x.Create(It.IsAny <FileReRoute>())).Returns(_rro); _ridkCreator.Setup(x => x.Create(It.IsAny <FileReRoute>(), It.IsAny <FileGlobalConfiguration>())).Returns(_requestId); _rrkCreator.Setup(x => x.Create(It.IsAny <FileReRoute>())).Returns(_rrk); _utpCreator.Setup(x => x.Create(It.IsAny <IReRoute>())).Returns(_upt); _aoCreator.Setup(x => x.Create(It.IsAny <FileReRoute>())).Returns(_ao); _cthCreator.Setup(x => x.Create(It.IsAny <Dictionary <string, string> >())).Returns(_ctt); _qosoCreator.Setup(x => x.Create(It.IsAny <FileQoSOptions>(), It.IsAny <string>(), It.IsAny <List <string> >())).Returns(_qoso); _rloCreator.Setup(x => x.Create(It.IsAny <FileRateLimitRule>(), It.IsAny <FileGlobalConfiguration>())).Returns(_rlo); _rCreator.Setup(x => x.Create(It.IsAny <FileReRoute>())).Returns(_region); _hhoCreator.Setup(x => x.Create(It.IsAny <FileHttpHandlerOptions>())).Returns(_hho); _hfarCreator.Setup(x => x.Create(It.IsAny <FileReRoute>())).Returns(_ht); _daCreator.Setup(x => x.Create(It.IsAny <FileReRoute>())).Returns(_dhp); _lboCreator.Setup(x => x.Create(It.IsAny <FileLoadBalancerOptions>())).Returns(_lbo); }
private void WhenICreate() { _result = _creator.Create(_reRoute); }