protected override ProductSource BuildEntity()
        {
            var productSource = new ProductSourceBuilder().Build();

            // there are no cascades defined for the following assocations, so we have to manually turn these
            // transient instances to persistent ones
            Session.Save(productSource.Product);
            return(productSource);
        }
Exemple #2
0
        protected override ProductSource BuildEntity()
        {
            var productSource = new ProductSourceBuilder().Build();

            // TODO: remove the following line (saving productSource.Supplier) and make sure the tests still work
            Session.Save(productSource.Supplier);
            Session.Save(productSource.Product);
            return(productSource);
        }