示例#1
0
        public async Task Should_be_Able_To_Get_Version_By_default_Client()
        {
            var client             = new MeilisearchClient("http://localhost:7700", "masterKey");
            var meilisearchversion = await client.GetVersion();

            meilisearchversion.Version.Should().NotBeNullOrEmpty();
        }
示例#2
0
        public async Task Should_be_Able_To_Get_Version()
        {
            var _httpClient        = ClientFactory.Instance.CreateClient <MeilisearchClient>();
            var client             = new MeilisearchClient(_httpClient);
            var meilisearchversion = await client.GetVersion();

            meilisearchversion.Version.Should().NotBeNullOrEmpty();
        }
示例#3
0
        public async Task GetVersionWithCustomClient()
        {
            var httpClient         = ClientFactory.Instance.CreateClient <MeilisearchClient>();
            var client             = new MeilisearchClient(httpClient);
            var meilisearchversion = await client.GetVersion();

            meilisearchversion.Version.Should().NotBeNullOrEmpty();
        }