Example #1
0
 /// <summary>
 /// Allows mock framework to pass in a mock db context for testing
 /// </summary>
 /// <param name="dbContext">Alternate DB Context to use for service opperations</param>
 internal BaseService(SoCashDbContext dbContext)
 {
     DbContext = dbContext;
 }
Example #2
0
 /// <summary>
 /// Allows mock framework to pass in a mock db context for testing
 /// </summary>
 /// <param name="dbContext">Alternate DB Context to use for service opperations</param>
 public DataService(SoCashDbContext dbContext) : base(dbContext)
 {
 }
Example #3
0
 /// <summary>
 /// No-argument constructor uses a real database context
 /// </summary>
 internal BaseService()
 {
     DbContext = new SoCashDbContext();
 }