Explorar el Código

update unit tests.

undefined
Savorboard hace 7 años
padre
commit
13fa2068f5
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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)
{
}


Cargando…
Cancelar
Guardar