Created
July 9, 2012 05:42
-
-
Save gra-moore/3074416 to your computer and use it in GitHub Desktop.
BrightstarDB Sample Test File
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
[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