public async Task GetByIdAsync() { if (SessionRepository != null) { try { var result = await SessionRepository.GetAsync(session.Id.ToString()); Assert.IsNotNull(result); } catch (Exception e) { Assert.Fail(e.Message); } } else { Assert.Fail(); } }