Last active
August 29, 2015 14:26
-
-
Save mat-mcloughlin/d20707a87c9e7d37e2d3 to your computer and use it in GitHub Desktop.
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
[TestFixture] | |
public class WhenCreatingANewUser | |
{ | |
private ConfigurableContext _configurableContext; | |
[TestFixtureSetUp] | |
public void Setup() | |
{ | |
_configurableContext = new ConfigurableContext<WriteContext>(x => | |
{ | |
x.Setup(c => c.Users, new List<User>()); | |
}); | |
var subject = new UserRepository(_configurableContext); | |
subject.SaveUser(new User()); | |
} | |
[Test] | |
public void ShouldCreateANewUser() | |
{ | |
_configurableContext.HasBeenSaved<User>( | |
x => x.PartitionKey == "10", | |
x => x.RowKey == "9"); | |
} | |
[Test] | |
public void ShouldCreateANewUserByEmailIndex() | |
{ | |
Assert.Fail("Not Implemented"); | |
} | |
[Test] | |
public void ShouldCreateANewUserByTelephoneNumberIndex() | |
{ | |
Assert.Fail("Not Implemented"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment