From 86ae8bfbdc0fa2d687570297fc3fcbd17440291f Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 10 Aug 2018 20:43:22 +0800 Subject: [PATCH] tweak unittests --- test/DotNetCore.CAP.Test/CAP.BuilderTest.cs | 57 ++------------------- 1 file changed, 5 insertions(+), 52 deletions(-) diff --git a/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs b/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs index 402e72f..cbdb3fe 100644 --- a/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs +++ b/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs @@ -1,5 +1,5 @@ using System; -using System.Data; +using System.Threading; using System.Threading.Tasks; using DotNetCore.CAP.Abstractions; using DotNetCore.CAP.Models; @@ -119,62 +119,15 @@ namespace DotNetCore.CAP.Test private class MyProducerService : ICapPublisher { - public void Publish(string name, T contentObj, string callbackName = null) - { - throw new NotImplementedException(); - } + public ICapTransaction CapTransaction { get; } - public void Publish(string name, T contentObj, IDbTransaction dbTransaction, string callbackName = null) + public Task PublishAsync(string name, T contentObj, string callbackName = null, + CancellationToken cancellationToken = default(CancellationToken)) { throw new NotImplementedException(); } - public void Publish(string name, T contentObj, object mongoSession, string callbackName = null) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string topic, string content) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string topic, T contentObj) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string topic, string content, IDbConnection dbConnection) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string topic, string content, IDbConnection dbConnection, IDbTransaction dbTransaction) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string name, T contentObj, IDbConnection dbConnection, IDbTransaction dbTransaction = null) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string name, T contentObj, string callbackName = null) - { - throw new NotImplementedException(); - } - - public Task PublishAsync(string name, T contentObj, IDbTransaction dbTransaction, string callbackName = null) - { - throw new NotImplementedException(); - } - - public void PublishWithMongo(string name, T contentObj, IMongoTransaction mongoTransaction = null, string callbackName = null) - { - throw new NotImplementedException(); - } - - public Task PublishWithMongoAsync(string name, T contentObj, IMongoTransaction mongoTransaction = null, string callbackName = null) + public void Publish(string name, T contentObj, string callbackName = null) { throw new NotImplementedException(); }