Ejemplo n.º 1
0
        public SmartShareTests()
        {
            var configuration = new ConfigurationBuilder()
                                .AddInMemoryCollection(appSettingsStub)
                                .Build();

            this.mockRestClient   = new Mock <IRestClient>();
            this.smartShareClient = new SmartShare(configuration, mockRestClient.Object);
        }
Ejemplo n.º 2
0
        private static async Task InitializeWithConfiguration()
        {
            var client      = new SmartShare(Configuration);
            var tokenResult = await client.GenerateTokenAsync();

            var a = new ListaDocumentoRequest()
            {
                quantidade = 30,
                stApenasDocumentosAprovados = true,
                lstIndices = new System.Collections.Generic.List <Indice>()
                {
                    new Indice(1, "=", "")
                }
            };

            var documentos = await client.ListDocumentsAsync(a);
        }