Ejemplo n.º 1
0
 public void TestFinishSession_WhenSuccess()
 {
     sqlOperationMock.Setup(s => s.ExecuteAsync(It.IsAny <ExecuteSqlQuery>(), It.IsAny <object[]>()));
     dataTracingService.FinishSession("fake_token");
     sqlOperationMock.Verify(v => v.ExecuteAsync(It.IsAny <ExecuteSqlQuery>(),
                                                 It.IsAny <object[]>()), Times.Exactly(1));
 }
        protected override void OnAbort()
        {
            LogHelper.Log("OnAbort");

            _tracer.FinishSession(CurrentRequest.QueryCollection.ConnectionToken);
        }