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

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

                Assert.AreEqual(batchSize, batchSizeValue);
            }