public void SetUp()
        {
            parent = new Parent("Mike Hadlow", "*****@*****.**", "pwd");
            child = parent.CreateChild("Leo", "leohadlow", "xxx");

            somebodyElse = new Parent("John Robinson", "*****@*****.**", "pwd");
            somebodyElsesChild = somebodyElse.CreateChild("Jim", "jimrobinson", "yyy");
        }
예제 #2
0
 string GetChildId()
 {
     using (var session = store.OpenSession())
     {
         var parent = new Parent("Mike Hadlow", "*****@*****.**", "yyy");
         var child = parent.CreateChild("Leo", "leohadlow", "xxx");
         session.Store(child);
         session.SaveChanges();
         return child.Id;
     }  
 }
        public void SetUp()
        {
            parent = new Parent("Dad", "*****@*****.**", "xxx");
            child = parent.CreateChild("Leo", "leohadlow", "yyy");
            parent.MakePaymentTo(child, 10.00M);

            somebodyElsesParent = new Parent("Not Dad", "*****@*****.**", "zzz");

            // make sure these tests pass on non en-GB machines
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");

            DomainEvent.TurnOff();
        }