Move tests over to new projects
This commit is contained in:
Родитель
841d896a1d
Коммит
9f3498acca
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.Bot.Builder.Streaming.Tests
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Bot.Builder;
|
||||
using Microsoft.Bot.Builder.Integration;
|
||||
using Microsoft.Bot.Builder.Integration.AspNet.Core;
|
||||
using Microsoft.Bot.Builder.Streaming;
|
||||
using Microsoft.Bot.Schema;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Rest.Serialization;
|
||||
|
@ -20,16 +17,6 @@ namespace Microsoft.Bot.Builder.Streaming.Tests
|
|||
{
|
||||
public class DirectLineAdapterTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task Test1()
|
||||
{
|
||||
// Arrange
|
||||
|
||||
// Act
|
||||
|
||||
// Assert
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task BasicMessageActivity()
|
||||
{
|
||||
|
|
|
@ -2,13 +2,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net.WebSockets;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Bot.Schema;
|
||||
using Microsoft.Bot.StreamingExtensions;
|
||||
using Microsoft.Bot.StreamingExtensions.Payloads;
|
||||
using Microsoft.Bot.Streaming;
|
||||
using Microsoft.Bot.Streaming.Payloads;
|
||||
using Newtonsoft.Json;
|
||||
using Xunit;
|
||||
|
||||
|
@ -304,5 +303,24 @@ namespace Microsoft.Bot.Builder.Streaming.Tests
|
|||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
private class FakeContentStream : IContentStream
|
||||
{
|
||||
public FakeContentStream(Guid id, string contentType, Stream stream)
|
||||
{
|
||||
Id = id;
|
||||
ContentType = contentType;
|
||||
Stream = stream;
|
||||
Length = int.Parse(stream.Length.ToString());
|
||||
}
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ContentType { get; set; }
|
||||
|
||||
public int? Length { get; set; }
|
||||
|
||||
public Stream Stream { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче