public void TestInit()
 {
     batchSize           = 1;
     context             = new InMemoryEcaContext();
     indexService        = new Mock <IIndexService>();
     notificationService = new Mock <IIndexNotificationService>();
     service             = new OfficeDocumentService(context, indexService.Object, notificationService.Object, batchSize);
 }
        public void TestConstructor()
        {
            batchSize = 1;
            service   = new OfficeDocumentService(context, indexService.Object, notificationService.Object, batchSize);
            Assert.AreEqual(batchSize, service.GetBatchSize());

            var batchSizeField = typeof(OfficeDocumentService).BaseType.GetField("batchSize", BindingFlags.Instance | BindingFlags.NonPublic);
            var batchSizeValue = batchSizeField.GetValue(service);

            Assert.AreEqual(batchSize, batchSizeValue);
        }