public void Setup() { _notifier = Substitute.For<IEventNotifier>(); _event = new GitHubWikiUpdateEvent(_notifier); string text = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SampleJson", "GitHubGollumJson.txt")); _event.Handle(text); }
public void SeeWikiUpdateResponse() { var _event = new GitHubWikiUpdateEvent(_notifier); string text = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SampleJson", "GitHubGollumJson.txt")); _event.Handle(text); //if (Debugger.IsAttached) Debugger.Break(); _botText.ShouldNotBeEmpty(); }