示例#1
0
        public void StartAdminSession_should_call_data_service()
        {
            // Given
            A.CallTo(() => sessionDataService.StartAdminSession(A <int> ._)).Returns(1);

            // When
            sessionService.StartAdminSession(1);

            // Then
            A.CallTo(() => sessionDataService.StartAdminSession(1)).MustHaveHappenedOnceExactly();
        }
示例#2
0
 public void StartAdminSession(int?adminId)
 {
     if (adminId != null)
     {
         sessionDataService.StartAdminSession((int)adminId);
     }
 }