protected virtual async Task ArrangeAsync() { using (var db = new CallemallContext()) { if (SetupData.Account != null) { await SetupData.Account.ArrangeAsync(db); } } }
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); }