public void WhenDeterminingIfTheSchemaConventionShouldBeAppliedToAnUndecoratedEntity()
        {
            // Arrange
            IConventionAcceptance <IClassInspector> subject = new SchemaTableConvention();
            var acceptanceCriteriaMock = new Mock <IAcceptanceCriteria <IClassInspector> >();
            var entityType             = typeof(UndecoratedTestEntity);

            acceptanceCriteriaMock.Setup(criteria => criteria.Expect(It.Is <Func <IClassInspector, bool> >(func => VerifyCriteriaExpectation(func, entityType, false))));

            // Act
            subject.Accept(acceptanceCriteriaMock.Object);

            // Assert
            acceptanceCriteriaMock.Verify();
        }
        public void WhenApplyingTheSchemaTableConventionToASchemaEntity()
        {
            // Arrange
            IClassConvention subject = new SchemaTableConvention();

            var classInstanceMock = new Mock <IClassInstance>();

            classInstanceMock.SetupGet(instance => instance.EntityType).Returns(typeof(SchemaDecoratedTestEntityDto));

            // Act
            subject.Apply(classInstanceMock.Object);

            // Assert
            classInstanceMock.Verify(instance => instance.Table("[SchemaDecoratedTestEntity]"), Times.Once());
            classInstanceMock.Verify(instance => instance.Schema("testSchema"), Times.Once());
        }