public void Ctor_EntityName_CreateTableWithName() { //Arrange var statementContext = new StatementContext { EntityName = TestTableName }; //Act var withOrAsClause = new WithOrAsClause(Mock.Of <IServiceScopeFactory>(), statementContext); //Assert statementContext.Statement.Should().Be($"CREATE TABLE {TestTableName}"); }
public void Ctor_CreateOrReplace_Stream() { //Arrange var statementContext = new StatementContext { CreationType = CreationType.CreateOrReplace, KSqlEntityType = KSqlEntityType.Stream }; //Act var withOrAsClause = new WithOrAsClause(Mock.Of <IServiceScopeFactory>(), statementContext); //Assert statementContext.Statement.Should().Be("CREATE OR REPLACE STREAM "); }
public void Ctor_Create_Table() { //Arrange var statementContext = new StatementContext { CreationType = CreationType.Create, KSqlEntityType = KSqlEntityType.Table }; //Act var withOrAsClause = new WithOrAsClause(Mock.Of <IServiceScopeFactory>(), statementContext); //Assert statementContext.Statement.Should().Be("CREATE TABLE "); }