public void Should_Return_All() { // Given var operations = new List <ISyncOperation> { new TestSyncOperation(), new TestSyncOperation(), new TestSyncOperation() }; SyncService sut = new SyncServiceFixture().WithOperations(operations); // When var result = sut.GetAll(); // Then result.Should().Contain(operations); }
public void Should_Return_Initial() { // Given var operations = new List <ISyncOperation> { new TestSyncOperation(), new TestSyncOperation { Initial = false }, new TestSyncOperation() }; SyncService sut = new SyncServiceFixture().WithOperations(operations); // When var result = sut.GetInitial().ToList(); // Then result.Should().NotContain(x => x.Initial == false); result.Count.Should().Be(2); }