public void GetTraces_ShouldGetThemFromOsm() { _controller.SetupIdentity(_cache); var osmGateWay = SetupOAuthClient(); _controller.GetTraces().Wait(); osmGateWay.Received(1).GetTraces(); }
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(); }