Skip to content

Instantly share code, notes, and snippets.

@mat-mcloughlin
Last active August 29, 2015 14:26
Show Gist options
  • Save mat-mcloughlin/d20707a87c9e7d37e2d3 to your computer and use it in GitHub Desktop.
Save mat-mcloughlin/d20707a87c9e7d37e2d3 to your computer and use it in GitHub Desktop.
[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