-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wahid Shalaly
committed
Mar 12, 2014
1 parent
db17d20
commit 42df176
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/ReliableUnitOfWork.SqlAzure.UnitTests/DomainServiceFacts.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using ReliableUnitOfWork.SqlAzure.Interfaces; | ||
using Xunit; | ||
|
||
namespace ReliableUnitOfWork.SqlAzure.UnitTests | ||
{ | ||
public class DomainServiceFacts | ||
{ | ||
private readonly IUnitOfWorkFactory<TestContext> unitOfWorkFactory = new UnitOfWorkFactory<TestContext>(); | ||
private readonly TestPlayer1 player = new TestPlayer1(); | ||
|
||
[Fact] | ||
public void ShouldCreateUnitOfWorkPerMethodAndJoinPlayersAccordingly() | ||
{ | ||
var service = new TestService(unitOfWorkFactory, player); | ||
|
||
Assert.True(service.FirstCall()); | ||
Assert.True(service.AnothertCall()); | ||
Assert.True(service.FirstCall()); | ||
Assert.True(service.AnothertCall()); | ||
} | ||
} | ||
} |
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