浏览代码

update unit tests.

undefined
Savorboard 7 年前
父节点
当前提交
13fa2068f5
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. +2
    -1
      test/DotNetCore.CAP.Test/ConsumerInvokerFactoryTest.cs
  2. +4
    -0
      test/DotNetCore.CAP.Test/Sample.cs

+ 2
- 1
test/DotNetCore.CAP.Test/ConsumerInvokerFactoryTest.cs 查看文件

@@ -20,9 +20,10 @@ namespace DotNetCore.CAP.Test
services.AddSingleton<IContentSerializer, JsonContentSerializer>();
var provider = services.BuildServiceProvider();
var logFactory = provider.GetRequiredService<ILoggerFactory>();
var mesagePacker = provider.GetRequiredService<IMessagePacker>();
var binder = new ModelBinderFactory();

consumerInvokerFactory = new ConsumerInvokerFactory(logFactory, binder, provider);
consumerInvokerFactory = new ConsumerInvokerFactory(logFactory, mesagePacker,binder, provider);
}

[Fact]


+ 4
- 0
test/DotNetCore.CAP.Test/Sample.cs 查看文件

@@ -1,10 +1,14 @@
using System;
using System.Threading.Tasks;
using DotNetCore.CAP.Models;
using Newtonsoft.Json;
using Xunit;

namespace DotNetCore.CAP.Test
{
public class Sample
{
public void DateTimeParam(DateTime dateTime)
{
}


正在加载...
取消
保存