public void FluentApi() { var ethalonDataAdapter = new OrderDataAdapter(false, false); EdmModel ethalonEdmModel = ethalonDataAdapter.BuildEdmModel(); String ethalonSchema = TestHelper.GetCsdlSchema(ethalonEdmModel); if (ethalonSchema == null) { throw new InvalidOperationException("Invalid ethalon schema"); } var testDataAdapter = new OrderDataAdapter(false, false); EdmModel testEdmModel = testDataAdapter.BuildEdmModelFromEfCoreModel(); String testSchema = TestHelper.GetCsdlSchema(testEdmModel); if (testSchema == null) { throw new InvalidOperationException("Invalid test schema"); } ethalonSchema = TestHelper.SortCsdlSchema(ethalonSchema); testSchema = TestHelper.SortCsdlSchema(testSchema); Assert.Equal(ethalonSchema, testSchema); }