public void TestChangeGroup() { TestGroupController = new GroupController(TestRepository); for (var i = 0; i < 50; i++) { TestGroupController.AddGroup(new ISGroup(i, 214 + i)); } TestGroupController.ChangeGroup( TestGroupController.GetGroup(43), new ISGroup(90, 216)); TestGroupController.ChangeGroup( TestGroupController.GetGroup(42), new ISGroup(80, 215)); Assert.AreEqual(90, TestGroupController.GetGroup(90).Id); Assert.AreEqual(80, TestGroupController.GetGroup(80).Id); }