private static bool IsBeaconOwner(Beacon beacon, int userId, int blueprintId, int floorplanId) { return beacon != null && beacon.Location.FloorPlanId == floorplanId && beacon.Location.FloorPlan.BluePrintId == blueprintId && beacon.Location.FloorPlan.Blueprint.UserId == userId; }
private void Equals(Beacon expected, BeaconDto actual) { Assert.IsNotNull(actual); Assert.AreEqual(expected.Id, actual.Id); Assert.AreEqual(expected.InstallationDate.Date, actual.InstallationDate.Date); Assert.AreEqual(expected.LastModified.Date, actual.LastModified.Date); Assert.AreEqual(expected.Name, actual.Name); Assert.AreEqual(expected.Location.XPos, actual.Location.XPos); Assert.AreEqual(expected.Location.YPos, actual.Location.YPos); Assert.AreEqual(expected.Address, actual.Address); }