Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created August 24, 2015 08:40
Show Gist options
  • Save ionoy/f570a7fef52543f37091 to your computer and use it in GitHub Desktop.
Save ionoy/f570a7fef52543f37091 to your computer and use it in GitHub Desktop.
new TestScheduler().With(sc => {
var bus = MessageBus.Current;
var quad = Substitute.For<IQuad>();
var vm = new MapViewModel(new Mission(quad, bus), quad, bus);
bus.SendMessage(new StartAddingWaypointsMessage());
Assert.IsTrue(vm.IsAddingWaypoints);
bus.SendMessage(new StopAddingWaypointsMessage());
Assert.IsFalse(vm.IsAddingWaypoints);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment