public void Create_ShouldReturnNewInstanceOfMsSqlDbContextClass() { // Arrange and Act var result = MsSqlDbContext.Create(); // Assert Assert.IsInstanceOf <MsSqlDbContext>(result); Assert.AreEqual("MsSqlDbContext", result.GetType().Name); }
public void Create_Should_ReturnNewDbContextInstance() { // Arrange & Act var newContext = MsSqlDbContext.Create(); // Assert Assert.IsNotNull(newContext); Assert.IsInstanceOf <IMsSqlDbContext>(newContext); }
public void ReturnNewDbContext_WhenParamsAreValid() { // Arrange & Act var newContext = MsSqlDbContext.Create(); // Assert Assert.IsNotNull(newContext); Assert.IsInstanceOf <MsSqlDbContext>(newContext); }
public SchoolAccessFilter(string Role) { this.schoolRepository = new EfRepository <School>(MsSqlDbContext.Create()); this.role = Role; }