Beispiel #1
0
        public void DeleteGpsTrace_ShouldDeleteIt()
        {
            long id = 1;

            _controller.SetupIdentity(_cache);
            var osmGateWay = SetupOAuthClient();

            _controller.DeleteGpsTrace(id).Wait();

            osmGateWay.Received(1).DeleteTrace(id);
        }
        public void DeleteGpsTrace_ShouldDeleteIt()
        {
            var id = "id";

            _controller.SetupIdentity();
            var osmGateWay = Substitute.For <IOsmGateway>();

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

            _controller.DeleteGpsTrace(id).Wait();

            osmGateWay.Received(1).DeleteTrace(id);
        }