Пример #1
0
 protected virtual async Task ArrangeAsync()
 {
     using (var db = new CallemallContext())
     {
         if (SetupData.Account != null)
         {
             await SetupData.Account.ArrangeAsync(db);
         }
     }
 }
Пример #2
0
        protected virtual List <string> AssertData(Data expected)
        {
            var errorMessages = new List <string>();

            using (var db = new CallemallContext())
            {
                if (expected.Account != null)
                {
                    expected.Account.Assert(db, errorMessages);
                }
            }

            return(errorMessages);
        }