public async Task TestApiRunNoConfig() { OutlookApi outlookApi = new OutlookApi(null); IEnumerable <(string, bool)> results = await outlookApi.RunAsync(graphClient).ToListAsync(); Assert.AreEqual(3, results.Count()); }
public async Task TestApiRun1() { Dictionary <string, string> config = new Dictionary <string, string> { { "API:NumberOfMethodCall", "1" } }; var configuration = new ConfigurationBuilder() .AddInMemoryCollection(config) .Build(); OutlookApi outlookApi = new OutlookApi(null, configuration); IEnumerable <(string, bool)> results = await outlookApi.RunAsync(graphClient).ToListAsync(); Assert.AreEqual(1, results.Count()); }