public void AddRemoveDeviceToRoomTest() { ExampleDevice dev = new ExampleDevice() { Id = 0 }; Assert.AreEqual(false, _roomRepo.AddDeviceToRoom(4, dev)); Assert.AreEqual(true, _roomRepo.AddDeviceToRoom(0, dev)); Assert.AreEqual(1, _roomRepo.Get(0).Devices.Count); Assert.AreEqual(true, _roomRepo.RemoveDeviceFromRoom(0, 0)); Assert.AreEqual(0, _roomRepo.Get(0).Devices.Count); }