public void AcsCommand_Run_UsesBindingFromNotification() { var options = StubFactory.CreateOptions(); options.Notifications.GetBinding = r => new StubSaml2Binding(); var subject = new AcsCommand(); subject.Invoking(s => s.Run(new HttpRequestData("GET", new Uri("http://host")), options)) .ShouldThrow<NotImplementedException>() .WithMessage("StubSaml2Binding.*"); }