Ejemplo n.º 1
0
        public void GetTraces_ShouldGetThemFromOsm()
        {
            _controller.SetupIdentity(_cache);
            var osmGateWay = SetupOAuthClient();

            _controller.GetTraces().Wait();

            osmGateWay.Received(1).GetTraces();
        }
Ejemplo n.º 2
0
        public void GetTraces_ShouldGetThemFromOsm()
        {
            _controller.SetupIdentity();
            var osmGateWay = Substitute.For <IOsmGateway>();

            _httpGatewayFactory.CreateOsmGateway(Arg.Any <TokenAndSecret>()).Returns(osmGateWay);

            _controller.GetTraces().Wait();

            osmGateWay.Received(1).GetTraces();
        }