File tree 18 files changed +23
-23
lines changed
TranscriptTestRunner.Tests
18 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 7
7
using System . IO ;
8
8
using Newtonsoft . Json ;
9
9
10
- namespace TranscriptConverter
10
+ namespace Microsoft . Bot . Builder . Testing . TranscriptConverter
11
11
{
12
12
public class ConvertTranscriptHandler
13
13
{
Original file line number Diff line number Diff line change 3
3
4
4
using System ;
5
5
using System . Collections . Generic ;
6
- using System . Globalization ;
7
6
using System . IO ;
8
7
using System . Text . RegularExpressions ;
9
8
using Microsoft . Bot . Schema ;
10
9
using Newtonsoft . Json ;
11
10
using Newtonsoft . Json . Linq ;
12
11
13
- namespace TranscriptConverter
12
+ namespace Microsoft . Bot . Builder . Testing . TranscriptConverter
14
13
{
15
14
public static class Converter
16
15
{
Original file line number Diff line number Diff line change 4
4
using System . CommandLine . Builder ;
5
5
using System . CommandLine . Parsing ;
6
6
7
- namespace TranscriptConverter
7
+ namespace Microsoft . Bot . Builder . Testing . TranscriptConverter
8
8
{
9
9
public class Program
10
10
{
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using Newtonsoft . Json ;
6
6
7
- namespace TranscriptConverter
7
+ namespace Microsoft . Bot . Builder . Testing . TranscriptConverter
8
8
{
9
9
/// <summary>
10
10
/// A Test Script that can be used for functional testing of bots.
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using Newtonsoft . Json ;
6
6
7
- namespace TranscriptConverter
7
+ namespace Microsoft . Bot . Builder . Testing . TranscriptConverter
8
8
{
9
9
/// <summary>
10
10
/// TestRunner's representation of an activity.
Original file line number Diff line number Diff line change 2
2
// Licensed under the MIT License.
3
3
4
4
using Moq ;
5
- using TranscriptTestRunner ;
6
5
using Xunit ;
7
6
8
- namespace TranscriptTestRunner . Tests
7
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . Tests
9
8
{
10
9
public class TestRunnerTests
11
10
{
Original file line number Diff line number Diff line change 3
3
4
4
using Newtonsoft . Json ;
5
5
6
- namespace TranscriptTestRunner . Authentication
6
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . Authentication
7
7
{
8
8
/// <summary>
9
9
/// Session definition.
Original file line number Diff line number Diff line change 3
3
4
4
using System . Net ;
5
5
6
- namespace TranscriptTestRunner . Authentication
6
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . Authentication
7
7
{
8
8
/// <summary>
9
9
/// Session information definition.
Original file line number Diff line number Diff line change 10
10
using System . Threading . Tasks ;
11
11
using Newtonsoft . Json ;
12
12
13
- namespace TranscriptTestRunner . Authentication
13
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . Authentication
14
14
{
15
15
/// <summary>
16
16
/// Authentication class for the Test Client.
Original file line number Diff line number Diff line change 3
3
4
4
using Newtonsoft . Json ;
5
5
6
- namespace TranscriptTestRunner . Authentication
6
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . Authentication
7
7
{
8
8
/// <summary>
9
9
/// Token definition.
Original file line number Diff line number Diff line change 6
6
using System . Threading . Tasks ;
7
7
using Microsoft . Bot . Schema ;
8
8
9
- namespace TranscriptTestRunner
9
+ namespace Microsoft . Bot . Builder . Testing . TestRunner
10
10
{
11
11
/// <summary>
12
12
/// Base class for test clients.
Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT License.
3
3
4
- using System ;
5
4
using System . ComponentModel ;
5
+ using Microsoft . Bot . Builder . Testing . TestRunner . TestClients ;
6
6
using Microsoft . Bot . Connector ;
7
7
using Microsoft . Extensions . Logging ;
8
- using TranscriptTestRunner . TestClients ;
9
8
10
- namespace TranscriptTestRunner
9
+ namespace Microsoft . Bot . Builder . Testing . TestRunner
11
10
{
12
11
/// <summary>
13
12
/// Factory class to create instances of <see cref="TestClientBase"/>.
Original file line number Diff line number Diff line change 12
12
using System . Text ;
13
13
using System . Threading ;
14
14
using System . Threading . Tasks ;
15
+ using Microsoft . Bot . Builder . Testing . TestRunner . Authentication ;
15
16
using Microsoft . Bot . Connector . DirectLine ;
16
17
using Microsoft . Bot . Schema ;
17
18
using Microsoft . Extensions . Logging ;
18
19
using Microsoft . Extensions . Logging . Abstractions ;
19
20
using Microsoft . Rest . TransientFaultHandling ;
20
21
using Newtonsoft . Json ;
21
- using TranscriptTestRunner . Authentication ;
22
22
using Activity = Microsoft . Bot . Connector . DirectLine . Activity ;
23
23
using ActivityTypes = Microsoft . Bot . Schema . ActivityTypes ;
24
24
using Attachment = Microsoft . Bot . Connector . DirectLine . Attachment ;
25
25
using BotActivity = Microsoft . Bot . Schema . Activity ;
26
26
using BotChannelAccount = Microsoft . Bot . Schema . ChannelAccount ;
27
27
using ChannelAccount = Microsoft . Bot . Connector . DirectLine . ChannelAccount ;
28
28
29
- namespace TranscriptTestRunner . TestClients
29
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . TestClients
30
30
{
31
31
/// <summary>
32
32
/// DirectLine implementation of <see cref="TestClientBase"/>.
Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT License.
3
3
4
- namespace TranscriptTestRunner . TestClients
4
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . TestClients
5
5
{
6
6
/// <summary>
7
7
/// Class with the options needed to run a test against a TesClient.
Original file line number Diff line number Diff line change 18
18
using Newtonsoft . Json ;
19
19
using Activity = Microsoft . Bot . Schema . Activity ;
20
20
21
- namespace TranscriptTestRunner
21
+ namespace Microsoft . Bot . Builder . Testing . TestRunner
22
22
{
23
23
/// <summary>
24
24
/// Test runner implementation.
25
25
/// </summary>
26
+
27
+ #pragma warning disable CA1724 // Type names should not match namespaces
26
28
public class TestRunner
29
+ #pragma warning restore CA1724 // Type names should not match namespaces
27
30
{
28
31
private readonly ILogger _logger ;
29
32
private readonly int _replyTimeout ;
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using Newtonsoft . Json ;
6
6
7
- namespace TranscriptTestRunner
7
+ namespace Microsoft . Bot . Builder . Testing . TestRunner
8
8
{
9
9
/// <summary>
10
10
/// A Test Script that can be used for functional testing of bots.
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using Newtonsoft . Json ;
6
6
7
- namespace TranscriptTestRunner
7
+ namespace Microsoft . Bot . Builder . Testing . TestRunner
8
8
{
9
9
/// <summary>
10
10
/// <see cref="TestRunner"/> representation of an activity.
Original file line number Diff line number Diff line change 10
10
using Newtonsoft . Json ;
11
11
using Xunit ;
12
12
13
- namespace TranscriptTestRunner . XUnit
13
+ namespace Microsoft . Bot . Builder . Testing . TestRunner . XUnit
14
14
{
15
15
/// <summary>
16
16
/// XUnit extension of <see cref="TestRunner"/>.
You can’t perform that action at this time.
0 commit comments