Skip to content

Instantly share code, notes, and snippets.

@gra-moore
Created July 9, 2012 05:42
Show Gist options
  • Save gra-moore/3074416 to your computer and use it in GitHub Desktop.
Save gra-moore/3074416 to your computer and use it in GitHub Desktop.
BrightstarDB Sample Test File
[TestClass]
public class EntityContextTests
{
private const string ConnectionString = "type=embedded;storesdirectory=c:\\brightstar";
private static MyEntityContext GetContext(string storeId)
{
return new MyEntityContext(ConnectionString + ";storename=" + storeId);
}
[TestMethod]
public void TestNumber1()
{
// The context is a new context to a brand new store
var ctx = GetContext(Guid.NewGuid().ToString());
// context operations for the test
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment