public void Should_be_able_to_get_model_from_context() { var context = new ShopContext_v1(); var edmX = context.GetModel(); Assert.NotNull(edmX); }
public void GetStorageMappingItemCollection_should_return_collection() { DbProviderInfo providerInfo; using (var context = new ShopContext_v1()) { var storageMappingItemCollection = context.GetModel().GetStorageMappingItemCollection(out providerInfo); Assert.NotNull(storageMappingItemCollection); Assert.NotNull(providerInfo); Assert.Equal("System.Data.SqlClient", providerInfo.ProviderInvariantName); if (DatabaseTestHelpers.IsSqlAzure(context.Database.Connection.ConnectionString)) { Assert.True(providerInfo.ProviderManifestToken == "2012.Azure"); } } }