public void GetAllAuditLogEntries_Should_Call_GetAllAuditLogEntries_On_Repository() { // Arrange var service = new AuditLogEntryService(_auditLogRepositoryMock.Object); // Act var result = service.GetAllAuditLogEntries(); // Assert _auditLogRepositoryMock.Verify(repository => repository.GetAllAuditLogEntries()); }
public void GetAllAuditLogEntries_Should_Return_Typeof_IEnumerable_With_AuditLogEntryViewModel() { // Arrange var service = new AuditLogEntryService(_auditLogRepositoryMock.Object); // Act var result = service.GetAllAuditLogEntries(); // Assert Assert.IsInstanceOfType(result, typeof(IEnumerable <AuditLogEntryViewModel>)); }