forked from tpolyak/Sharp-Architecture
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from sharparchitecture/releases/8.0.0
Release 8.0.0
- Loading branch information
Showing
91 changed files
with
2,654 additions
and
814 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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ namespace Suteki.TardisBank.Tests.Model | |
using System.Threading.Tasks; | ||
using Domain; | ||
using FluentAssertions; | ||
using SharpArch.NHibernate.Impl; | ||
using SharpArch.NHibernate; | ||
using SharpArch.Testing.Xunit.NHibernate; | ||
using Xunit; | ||
|
||
|
@@ -30,15 +30,15 @@ protected override async Task LoadTestData(CancellationToken cancellationToken) | |
public async Task Should_be_able_to_add_a_child_to_a_parent() | ||
{ | ||
var linqRepository = new LinqRepository<Parent, int>(TransactionManager); | ||
Parent savedParent = await linqRepository.GetAsync(_parentId); | ||
Parent savedParent = (await linqRepository.GetAsync(_parentId))!; | ||
savedParent.Should().NotBeNull(); | ||
|
||
savedParent.CreateChild("jim", "jim123", "passw0rd1"); | ||
savedParent.CreateChild("jenny", "jenny123", "passw0rd2"); | ||
savedParent.CreateChild("jez", "jez123", "passw0rd3"); | ||
await FlushSessionAndEvict(savedParent); | ||
|
||
Parent parent = await linqRepository.GetAsync(_parentId); | ||
Parent parent = (await linqRepository.GetAsync(_parentId))!; | ||
parent.Children.Count.Should().Be(3); | ||
|
||
parent.Children[0].Name.Should().Be("jim"); | ||
|
@@ -49,7 +49,7 @@ public async Task Should_be_able_to_add_a_child_to_a_parent() | |
[Fact] | ||
public async Task Should_be_able_to_create_and_retrieve_Parent() | ||
{ | ||
Parent parent = await new LinqRepository<Parent, int>(TransactionManager).GetAsync(_parentId); | ||
Parent parent = (await new LinqRepository<Parent, int>(TransactionManager).GetAsync(_parentId))!; | ||
parent.Should().NotBeNull(); | ||
parent.Name.Should().Be("Mike Hadlow"); | ||
parent.UserName.Should().Be("[email protected]"); | ||
|
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
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
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
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
Oops, something went wrong.