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);
        }
Exemplo n.º 2
0
        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();
        }