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(); }
public void StartAdminSession(int?adminId) { if (adminId != null) { sessionDataService.StartAdminSession((int)adminId); } }