protected override void LoadTestData() { _locationRepository = new LocationRepository(); var location1 = new Location {LocationType = LocationType.Source}; var location2 = new Location {LocationType = LocationType.Destination}; var location3 = new Location {LocationType = LocationType.Source}; _locationRepository.SaveOrUpdate(location1); _locationRepository.SaveOrUpdate(location2); _locationRepository.SaveOrUpdate(location3); FlushAndClearSession(); }
public void NewLocationShouldHaveZeroId() { var location = new Location(); Assert.IsTrue(location.ID == 0); }
public void NewLocationShouldHaveDefaultType() { var location = new Location(); Assert.IsNotNull(location.LocationType); Assert.AreEqual(location.LocationType, LocationType.Source); }