-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move files from base directory to /src directory (#242)
This will help with azure devops compiling and the build recipe
- Loading branch information
1 parent
7e418d7
commit c0d4fb1
Showing
491 changed files
with
5,686 additions
and
5,686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
116 changes: 58 additions & 58 deletions
116
...ta.Tests/Cache/DeferUntilLoadedFixture.cs → ...ta.Tests/Cache/DeferUntilLoadedFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
using System; | ||
using System.Linq; | ||
using DynamicData.Tests.Domain; | ||
using FluentAssertions; | ||
using Xunit; | ||
|
||
namespace DynamicData.Tests.Cache | ||
{ | ||
|
||
public class DeferAnsdSkipFixture | ||
{ | ||
[Fact] | ||
public void DeferUntilLoadedDoesNothingUntilDataHasBeenReceived() | ||
{ | ||
bool updateReceived = false; | ||
IChangeSet<Person, string> result = null; | ||
|
||
var cache = new SourceCache<Person, string>(p => p.Name); | ||
|
||
var deferStream = cache.Connect().DeferUntilLoaded() | ||
.Subscribe(changes => | ||
{ | ||
updateReceived = true; | ||
result = changes; | ||
}); | ||
|
||
var person = new Person("Test", 1); | ||
updateReceived.Should().BeFalse(); | ||
cache.AddOrUpdate(person); | ||
|
||
updateReceived.Should().BeTrue(); | ||
result.Adds.Should().Be(1); | ||
result.First().Current.Should().Be(person); | ||
deferStream.Dispose(); | ||
} | ||
|
||
[Fact] | ||
public void SkipInitialDoesNotReturnTheFirstBatchOfData() | ||
{ | ||
bool updateReceived = false; | ||
|
||
var cache = new SourceCache<Person, string>(p => p.Name); | ||
|
||
var deferStream = cache.Connect().SkipInitial() | ||
.Subscribe(changes => updateReceived = true); | ||
|
||
updateReceived.Should().BeFalse(); | ||
|
||
cache.AddOrUpdate(new Person("P1", 1)); | ||
|
||
updateReceived.Should().BeFalse(); | ||
|
||
cache.AddOrUpdate(new Person("P2", 2)); | ||
updateReceived.Should().BeTrue(); | ||
deferStream.Dispose(); | ||
} | ||
} | ||
} | ||
using System; | ||
using System.Linq; | ||
using DynamicData.Tests.Domain; | ||
using FluentAssertions; | ||
using Xunit; | ||
|
||
namespace DynamicData.Tests.Cache | ||
{ | ||
|
||
public class DeferAnsdSkipFixture | ||
{ | ||
[Fact] | ||
public void DeferUntilLoadedDoesNothingUntilDataHasBeenReceived() | ||
{ | ||
bool updateReceived = false; | ||
IChangeSet<Person, string> result = null; | ||
|
||
var cache = new SourceCache<Person, string>(p => p.Name); | ||
|
||
var deferStream = cache.Connect().DeferUntilLoaded() | ||
.Subscribe(changes => | ||
{ | ||
updateReceived = true; | ||
result = changes; | ||
}); | ||
|
||
var person = new Person("Test", 1); | ||
updateReceived.Should().BeFalse(); | ||
cache.AddOrUpdate(person); | ||
|
||
updateReceived.Should().BeTrue(); | ||
result.Adds.Should().Be(1); | ||
result.First().Current.Should().Be(person); | ||
deferStream.Dispose(); | ||
} | ||
|
||
[Fact] | ||
public void SkipInitialDoesNotReturnTheFirstBatchOfData() | ||
{ | ||
bool updateReceived = false; | ||
|
||
var cache = new SourceCache<Person, string>(p => p.Name); | ||
|
||
var deferStream = cache.Connect().SkipInitial() | ||
.Subscribe(changes => updateReceived = true); | ||
|
||
updateReceived.Should().BeFalse(); | ||
|
||
cache.AddOrUpdate(new Person("P1", 1)); | ||
|
||
updateReceived.Should().BeFalse(); | ||
|
||
cache.AddOrUpdate(new Person("P2", 2)); | ||
updateReceived.Should().BeTrue(); | ||
deferStream.Dispose(); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.