Exemplo n.º 1
0
        public void should_read_config()
        {
            // given
            var reader = new ConfigReader();

            // when
            var config = reader.GetConfig();

            // then
            config.ShouldNotBeNull();
            config.Slack.ShouldNotBeNull();
            config.Slack.ApiToken.ShouldNotBeNull();
        }
Exemplo n.º 2
0
        public void should_connect_as_expected()
        {
            // given
            var configReader = new ConfigReader();
            var pipelineFactory = new PipelineFactoryStub();

            var connector = new SlackWrapper(configReader, pipelineFactory);

            // when
            var task = connector.Connect();
            task.Wait();

            // then
        }