public Location(string name, List <IWorldObject> worldObjects, int minLevel, int maxLevel) { ObjectId = LocationManager.GetUniqueLocationId(); LocationManager.AddLocation(this); Name = name; MinLevel = minLevel; MaxLevel = maxLevel; WorldObjects = worldObjects ?? (new()); }
public void TestLocationManagerInsertLocation() { // arrange var locationManager = new LocationManager(_fakeLocationAccessor); var location = new Location() { LocationID = 004, Name = "Fake", Address1 = "Fake", Address2 = "Fake", City = "Fake", State = "FK", Zip = "FAKE" }; // act var result = locationManager.AddLocation(location); // assert Assert.IsTrue(result); }