コード例 #1
0
        public void GetAllAuditLogEntries_Should_Call_GetAllAuditLogEntries_On_AuditLogEntryService()
        {
            // Arrange
            var controller = new AuditLogController(_auditLogEntryServiceMock.Object);

            // Act
            var result = controller.GetAllAuditLogEntries();

            // Assert
            _auditLogEntryServiceMock.Verify(service => service.GetAllAuditLogEntries());
        }
コード例 #2
0
        public void GetAllAuditLogEntries_Should_Return_Instance_Of_Type_IEnumerable_With_AuditLogEntryViewModel()
        {
            // Arrange
            var controller = new AuditLogController(_auditLogEntryServiceMock.Object);

            // Act
            var result = controller.GetAllAuditLogEntries();

            // Assert
            Assert.IsInstanceOfType(result, typeof(IEnumerable <AuditLogEntryViewModel>));
        }