unit tests for repo update methods
This commit is contained in:
@@ -5,6 +5,7 @@ using MongoDbGenericRepository.DataAccess.Create;
|
||||
using MongoDbGenericRepository.DataAccess.Delete;
|
||||
using MongoDbGenericRepository.DataAccess.Index;
|
||||
using MongoDbGenericRepository.DataAccess.Read;
|
||||
using MongoDbGenericRepository.DataAccess.Update;
|
||||
using Moq;
|
||||
|
||||
namespace CoreUnitTests.Infrastructure;
|
||||
@@ -54,6 +55,11 @@ public class TestKeyedMongoRepositoryContext<TKey>
|
||||
sut.SetEraser(Eraser.Object);
|
||||
}
|
||||
|
||||
if (Updater != null)
|
||||
{
|
||||
sut.SetUpdater(Updater.Object);
|
||||
}
|
||||
|
||||
return sut;
|
||||
}
|
||||
}
|
||||
@@ -65,4 +71,7 @@ public class TestKeyedMongoRepositoryContext<TKey>
|
||||
protected Mock<IMongoDbReader> Reader { get; set; }
|
||||
|
||||
protected Mock<IMongoDbEraser> Eraser { get; set; }
|
||||
|
||||
protected Mock<IMongoDbUpdater> Updater { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user