public async void CanRollbackQuote() { var container = CreateContainer(); var bus = container.GetInstance <IBus>(); var retroactive = container.GetInstance <IRetroactive>(); var forAsset = new Currency("GBP"); var domAsset = new Currency("USD"); var command = new UpdateQuote(AssetPair.Fordom(forAsset, domAsset)); await bus.Command(new RegisterAssetPair("GBPUSD", forAsset, domAsset)); await bus.Command(command); await retroactive.RollbackCommands(new[] { command }); }
// Setter for the static value of QUOTE that triggers the event private void SetQuote(double value) { QUOTE = value; ServerDB.UpdateQuote(QUOTE); UpdateQuote.Invoke(QUOTE); }