Ejemplo n.º 1
0
        public void SetUp()
        {
            _filePath = Path.GetTempFileName();
            File.WriteAllText(_filePath, EmbeddedResourceFileReader.ReadEmbeddedFileAsText("UploadTest.txt"));

            _config = new ConfigReader().GetConfig();
            var slackConnector = new SlackConnector();

            _slackConnection = slackConnector.Connect(_config.Slack.ApiToken).Result;
        }
Ejemplo n.º 2
0
 public FileUploadTests()
 {
     _filePath = Path.GetTempFileName();
     File.WriteAllText(_filePath, EmbeddedResourceFileReader.ReadEmbeddedFileAsText("UploadTest.txt"));
 }