public void LocationAddFail1Test() { _context.Locations.Add(new Location() { Name = "location", LocationId = 1 }); _context.SaveChanges(); Assert.Throws <ApplicationException>(delegate { _analyticsRepository.SaveLocation(4, "location"); }); }
public void LocationAddFail1Test() { _context.Locations.Add(new Location() { Name = "location", LocationId = 1 }); _context.SaveChanges(); Assert.Throws <ApplicationException>(delegate { _analyticsRepository.SaveLocation(4, "location"); }); }