public void PutGpsTrace_ShouldUpdate() { _controller.SetupIdentity(_cache); var osmGateWay = SetupOAuthClient(); _controller.PutGpsTrace("42", new Trace { Id = "7", Visibility = "public" }).Wait(); osmGateWay.Received(1).UpdateTrace(Arg.Any <GpxFile>()); }
public void PutGpsTrace_ShouldUpdate() { _controller.SetupIdentity(); var osmGateWay = Substitute.For <IOsmGateway>(); _httpGatewayFactory.CreateOsmGateway(Arg.Any <TokenAndSecret>()).Returns(osmGateWay); _controller.PutGpsTrace("42", new GpxFile()).Wait(); osmGateWay.Received(1).UpdateTrace(Arg.Any <GpxFile>()); }