INNER CODE UNIT · C#

MongoDbDataStoreTests

Chinchilla-Software-Com/CQRS · Framework/Cqrs.MongoDB.Tests.Integration/MongoDbDataStoreTests.cs:34

	public class MongoDbDataStoreTests
	{
		/// <summary>
		/// Tests the <see cref="IDataStore{TData}.Add(TData)"/> method
		/// Passing a valid test <see cref="IEntity"/>
		/// Expecting the test <see cref="IEntity"/> is able to be read.
		/// </summary>
		[TestMethod]
		public void Add_ValidProjectionView_ProjectionViewCanBeRetreived()
		{
			// Arrange
			var correlationIdHelper = new CorrelationIdHelper(new ContextItemCollectionFactory());
			correlationIdHelper.SetCorrelationId(Guid.NewGuid());
			var logger = new ConsoleLogger(new LoggerSettings(), correlationIdHelper);

			var connectionStringFactory = new TestMongoDataStoreConnectionStringFactory();
			TestMongoDataStoreConnectionStringFactory.DatabaseName = string.Format("Test-{0}", new Random().Next(0, 9999));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…