public void TestInitialize() { TestDataContext dataContext = new TestDataContext(DalTestContextSpecification.ConnectionString); ZombiePackDto dto = new ZombiePackDto { Id = _zombiePackId, HotZoneId = Guid.NewGuid(), Latitude = 0, Longitude = 0, Name = string.Empty }; dataContext.ZombiePackDtos.InsertOnSubmit(dto); dataContext.SubmitChanges(); }
private Guid GivenZombiePackInHotZone(Guid hotzoneId, string name) { TestDataContext testDataContext = new TestDataContext(DalTestContextSpecification.ConnectionString); Guid zombiePackId = Guid.NewGuid(); _zombiePackIds.Add(zombiePackId); ZombiePackDto zombiePackDto = new ZombiePackDto { HotZoneId = hotzoneId, Id = zombiePackId, Latitude = 0, Longitude = 0, Name = name }; testDataContext.ZombiePackDtos.InsertOnSubmit(zombiePackDto); testDataContext.SubmitChanges(); return zombiePackId; }
partial void UpdateZombiePackDto(ZombiePackDto instance);
partial void DeleteZombiePackDto(ZombiePackDto instance);
partial void InsertZombiePackDto(ZombiePackDto instance);