public void ShouldInsertData() { // Arrange IProcessManagerData data = new TestData { CorrelationId = _correlationId, Name = "TestData" }; IProcessManagerFinder processManagerFinder = new MongoDbProcessManagerFinder(_connectionString, _dbName); // Act processManagerFinder.InsertData(data); // Assert var insertedData = _collection.FindOneAs<MongoDbData<TestData>>(Query<MongoDbData<TestData>>.Where(i => i.Data.CorrelationId == _correlationId)); Assert.Equal("TestData", insertedData.Data.Name); }
public void InsertData(IProcessManagerData data) { Finder.InsertData(data); }