public void Should_be_able_to_read_the_project_table_from_the_database() { var context = new ProjectContext(); Assert.IsTrue(context.ProjectColors.Any()); Assert.IsTrue(context.Projects.Any()); Assert.IsTrue(context.ProjectMembers.Any()); }
public static void Initialize() { string connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString; Database.DefaultConnectionFactory.CreateConnection(connectionString); Database.SetInitializer(new AviTimeTrackerInitializer()); var ctx = new ProjectContext(connectionString); ctx.Database.Initialize(true); }