public void Sets_Schema() { // Arrange var extract = Substitute.For <IExtract>(); var client = Substitute.For <IDbClient>(); var schema = Substitute.For <IWpDbSchema>(); // Act var result = new TestPartsBuilder(extract, client, schema); // Assert Assert.Same(schema, result.TTest); }
public static (TestPartsBuilder builder, Vars v) Setup() { var extract = Substitute.For <IExtract>(); var client = Substitute.For <IDbClient>(); var schema = Substitute.For <IWpDbSchema>(); var builder = new TestPartsBuilder(extract, client, schema); var table = new TestTable(new DbName(Rnd.Str), Rnd.Str, Rnd.Str); return(builder, new(client, schema, table)); }