コード例 #1
0
        public void DefaultBuilder()
        {
            var dgt = Builder.Build <DocumentGroupTable>();

            Assert.That(dgt.DocumentGroupId, Is.EqualTo(123));
            Assert.That(dgt.Name, Is.EqualTo("My docs"));
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
 public void SetUp()
 {
     Builder.ClearFactoryDefinitions();
     Builder.Define(() => new DocumentGroupTable
     {
         DocumentGroupId = 123,
         Name            = "My docs"
     });
 }