public void CanGetSnapshot() { RemoteMarketDataSnapshotter snapshotter = Context.ViewProcessor.MarketDataSnapshotter; RemoteViewCycleTests.WithViewCycle( delegate(ViewDefinitionCompiledArgs compiled, IViewCycle cycle, RemoteViewClient client) { var snapshot = snapshotter.CreateSnapshot(client, cycle); Assert.NotNull(snapshot); }); }
public void CanGetYieldCurveSpecs() { RemoteMarketDataSnapshotter snapshotter = Context.ViewProcessor.MarketDataSnapshotter; RemoteViewCycleTests.WithViewCycle( delegate(ViewDefinitionCompiledArgs compiled, IViewCycle cycle, RemoteViewClient client) { var snapshot = snapshotter.GetYieldCurveRequirements(client, cycle); Assert.NotNull(snapshot); Assert.NotEmpty(snapshot); }); }