Example #1
0
        public async Task RunAsync()
        {
            var foo = await _fooService.CreateAsync("*****@*****.**");

            await ExecuteAsync(_fooService.SendAsync(foo.Id));
            await ExecuteAsync(_fooService.AcceptAsync(foo.Id));
            await ExecuteAsync(_fooService.SendAsync(foo.Id));
            await ExecuteAsync(_fooService.DeclineAsync(foo.Id));

            await _writer.WriteLineAsync("-----------------------");

            var bar = await _barService.CreateAsync("Xstmas");

            await ExecuteAsync(_barService.OpenAsync(bar.Id));
            await ExecuteAsync(_barService.ArchiveAsync(bar.Id));
            await ExecuteAsync(_barService.CloseAsync(bar.Id));
            await ExecuteAsync(_barService.OpenAsync(bar.Id));
            await ExecuteAsync(_barService.ArchiveAsync(bar.Id));
        }