Example #1
0
 /// <summary>
 /// This is the only class that should "new" the FlexOffersFizzBuzzModelContainer.
 /// If no connection string is passed then the production Db connection string will be used.
 /// </summary>
 public UnitOfWork()
 {
     this.context = new FlexOffersFizzBuzzModelContainer("FlexOffersFizzBuzzModelContainer");
 }
Example #2
0
 /// <summary>
 /// This constructor is used for testing purposes. The data manager receives a child of the main
 /// context class that has access to a quick erase Db method.
 /// </summary>
 public UnitOfWork(FlexOffersFizzBuzzModelContainer contextForTestingONLY)
 {
     this.context = contextForTestingONLY;
 }
Example #3
0
 /// <summary>
 /// This is the only class that should "new" the FlexOffersFizzBuzzModelContainer.
 /// </summary>
 /// <param name="connectionString"> The connection string to the SQL Db </param>
 public UnitOfWork(string connectionString)
 {
     this.context = new FlexOffersFizzBuzzModelContainer(connectionString);
 }