public void SchemaConfigurationIsRefined() { //Arrange/Act var collection = SchemaObjectMother.MakeCollection(); //Assert var output = new Output(); output.WrapLine("Refined schema"); output.WriteLine(); collection.GetSchemaReport(output, true); output.Report.Verify(); }
public async void DatabaseChangesAreFlagged() { //Arrange var collection = SchemaObjectMother.MakeCollection(); var entities = new ChessContext(Config.ConnectionString); var builder = collection.Snapshot("before"); //Act await _om.AddPlayerAsync("Bill", (ChessObjectMother.ChessDotCom, 1801), (ChessObjectMother.Lichess, 1992)); await _om.AddPlayerAsync("Ted", (ChessObjectMother.ChessDotCom, 1836), (ChessObjectMother.Lichess, 1918)); collection.Snapshot("after"); //Assert var output = new Output(); collection.ReportChanges("before", "after", output); output.Report.Verify(); }