public void Given() { _db = new AutoResolveContext(); SUT = new AccidentAsyncRepository(_db); IAmAnExistingCustomer = _db.Customers.First(); iAmAnExistingAccident = _db.Accidents.First(); iAmANewAccidentEveryTime = new Accident { AccidentDateTime = DateTime.Now.AddDays(-1), Latitude = 1.000, Longitude = -0.1232, HouseNameOrNumber = " VIA REPO 1a Test Accident", StreetName = "VIA REPO AccidentTest Place", Town = "VIA REPO AccidentTest Town", Country = "VIA REPO AccidentTest Country", PostCode = "VIA REPO Accident T1ST" }; }
public AccidentsController() { __loggingResourceName = "Accident"; repo = new AccidentAsyncRepository(_db); _dataAccessAuthoriser = new AuthoriseCustomerDataAccess(_db); }