public int Start()
        {
            int result = -1;

            if (_replacement != null)
            {
                _provider.ReplacementPreparation();
                StartReplesment();
            }
            else
            {
                _provider.ReadingPreparation();
                result = CountOccurrences();
            }
            _provider.Dispose();

            return(result);
        }
Exemplo n.º 2
0
//        [Fact]
//        public async Task SendAsync_ToSelf_GotEmail()
//        {
////            var content = Email.CreateHtml("*****@*****.**", "Testmail", new { Greeting = "Hallo Mailr!" }, email => email.CanSend = false);
////            var response = await _http.SendAsync
////            (
////                "mailr/messages/test",
////                content,
////                metadata: ResourceMetadata.Empty.ConfigureRequestHeaders(headers => headers.UserAgent("MailrNET.Tests", "3.0"))
////            );
//        }

        public void Dispose()
        {
            _http.Dispose();
            _teapot.Dispose();
        }