public static async Task TestRequestByIdentity(IAnalyticStore store) { foreach (var request in MatteoRequests) { await store.StoreWebRequestAsync(request); } foreach (var request in FrancoRequests) { await store.StoreWebRequestAsync(request); } Assert.Equal(MatteoRequests.Length, (await store.RequestByIdentityAsync("MATTEO")).Count()); Assert.Equal(FrancoRequests.Length, (await store.RequestByIdentityAsync("FRANCO")).Count()); }
public async Task <ActionResult> Identity(string id) { return(View(new WebStat { Identity = id, Requests = (await _analyticStore.RequestByIdentityAsync(id)).ToArray(), })); }
public Task <IEnumerable <WebRequest> > RequestByIdentityAsync(string identity) => store.RequestByIdentityAsync(identity);