Esempio n. 1
0
        public void Should_save_searchIndexItem_when_AddToSearch_method_called()
        {
            this.ClearCollections();
            _service.AddOrganization(organizationId, organizationKey);

            var aText   = "just a text";
            var encText = _cryptoHelper.Encrypt(aText, organizationKey);

            Assert.AreEqual(true, _service.AddToSearch(organizationId, encText, encText, "1", "test", true).Result);
        }