public void DefaultBuilder() { var dgt = Builder.Build <DocumentGroupTable>(); Assert.That(dgt.DocumentGroupId, Is.EqualTo(123)); Assert.That(dgt.Name, Is.EqualTo("My docs")); }
public void CustomBuilder() { var dgt = Builder.Build <DocumentGroupTable>(u => u.Name = "My custom docs"); Assert.That(dgt.DocumentGroupId, Is.EqualTo(123)); Assert.That(dgt.Name, Is.EqualTo("My custom docs")); }
public void SetUp() { Builder.ClearFactoryDefinitions(); Builder.Define(() => new DocumentGroupTable { DocumentGroupId = 123, Name = "My docs" }); }