/Source/Bifrost.Specs/Sagas/for_ChapterTransitionHelper/when_asking_by_type_and_it_can_transition.cs

# · C# · 15 lines · 12 code · 3 blank · 0 comment · 0 complexity · 92c5cccba0e3e6ad3bcd4319b47b00d5 MD5 · raw file

  1. using Bifrost.Fakes.Sagas;
  2. using Bifrost.Sagas;
  3. using Machine.Specifications;
  4. namespace Bifrost.Specs.Sagas.for_ChapterTransitionHelper
  5. {
  6. public class when_asking_by_type_and_it_can_transition
  7. {
  8. static bool can_transition;
  9. Because of = () => can_transition = ChapterTransitionHelper.CanTransition(typeof(TransitionalChapter), typeof(NonTransitionalChapter));
  10. It should_not_be_able_to_transition = () => can_transition.ShouldBeTrue();
  11. }
  12. }