public Synology(IHttpGateway http) { JsonConvert.DefaultSettings = Settings; Http = http; Initialize(); }
internal SelfossApi(ConnectionOptions opts, IHttpGateway http) : base(opts, http) { this.Items = new ItemsApi(opts, http); this.Tags = new TagsApi(opts, http); this.Sources = new SourcesApi(opts, http); }
public MainViewModel(IHttpGateway gateway, ISimilarityStringProcessor processor) { _gateway = gateway; _similarityProcessor = processor; StartCommand = new SimpleCommand(StartExecute); Latitude = 70; Longtitude = 30; }
public ICommand FindFor(IHttpGateway request) { foreach (IRequestHandler handler in handlers.All( )) { if (handler.IsSatisfiedBy(request)) { return(handler); } } return(new RedirectCommand( )); }
public void Should_delegate_to_specification_to_see_if_criteria_is_satisfied( ) { IHttpGateway request = _mockery.DynamicMock <IHttpGateway>( ); using (_mockery.Record( )) { Expect.Call(_mockSpecification.IsSatisfiedBy(request)).Return(true); } using (_mockery.Playback( )) { CreateSUT( ).IsSatisfiedBy(request); } }
public void Should_return_false_if_destination_does_not_contain_command_name( ) { IHttpGateway mockRequest = _mockery.DynamicMock <IHttpGateway>( ); string firstCommandName = "test.marina"; string secondCommandName = "test2.marina"; using (_mockery.Record( )) { SetupResult.For(mockRequest.Destination( )).Return(secondCommandName); } using (_mockery.Playback( )) { Assert.IsFalse(CreateSUT(firstCommandName).IsSatisfiedBy(mockRequest)); } }
public void Should_return_true_if_destination_contains_command_name( ) { IHttpGateway mockRequest = _mockery.DynamicMock <IHttpGateway>( ); string commandName = "test.marina"; using (_mockery.Record( )) { SetupResult.For(mockRequest.Destination( )).Return(commandName); } using (_mockery.Playback( )) { Assert.IsTrue(CreateSUT(commandName).IsSatisfiedBy(mockRequest)); } }
public VendaService( IConfiguration configuration, IVendaRepository vendaRepository, IHttpGateway <PagamentoSignature, PagamentoResult> pagamentoGateway, IHttpGateway <EstoqueSignature, EstoqueResult> estoqueGateway, IHttpGateway <ProdutoSignature, ProdutoResult> produtoGateway ) { _vendaRepository = vendaRepository; _pagamentoGateway = pagamentoGateway; _estoqueGateway = estoqueGateway; _produtoGateway = produtoGateway; urlPagamento = configuration.GetSection("Pagamento").Value; urlEstoque = configuration.GetSection("Estoque").Value; urlProduto = configuration.GetSection("Produto").Value; }
internal BaseApi(ConnectionOptions opts, IHttpGateway http) { this.Options = opts; this.Http = http; }
internal SourcesApi(ConnectionOptions opts, IHttpGateway http) : base(opts, http) { }
public void Setup() { _mockery = new MockRepository( ); _mockGateway = _mockery.DynamicMock <IHttpGateway>( ); _pageName = string.Empty; }
public WebView(string name, IViewLuggageTransporter <T> viewBag, IHttpGateway gateway) { this.name = name; this.gateway = gateway; this.viewBag = viewBag; }
public bool IsSatisfiedBy(IHttpGateway item) { return(_specification.IsSatisfiedBy(item)); }
public View(string name, IHttpGateway gateway) { _name = name; _gateway = gateway; }
public SWApiGateway(IConfiguration configuration, IHttpGateway httpGateway) { _configuration = configuration; _httpGateway = httpGateway; }
public DownloadStation(IHttpGateway http) : base(http) { }
public AvailableSlipsWebView(IViewLuggageTransporter <IEnumerable <SlipDisplayDTO> > viewBag, IHttpGateway gateway) : base("AvailableSlips.aspx", viewBag, gateway) { }
public void Setup() { _mockery = new MockRepository( ); _mockViewBag = _mockery.DynamicMock <IViewLuggageTransporter <IEnumerable <SlipDisplayDTO> > >( ); _mockGateway = _mockery.DynamicMock <IHttpGateway>( ); }
public AuthenticationTask(ICustomerRepository customers, IHttpGateway gateway) { _customers = customers; _gateway = gateway; }
public FrontController(IHttpGateway gateway) { _gateway = gateway; }