public void ItemGroupViewModel_EditItemGroupCommand_UpdateItemGroupName_MessageBoxShowsNewItemGroupName()
 {
     _uut.PreviousItemGroupName = "Test1";
     _uut.ItemGroupName         = "Test";
     _uut.ListOfItemGroups.Add(new ItemGroup("test1", (long)0, (long)0));
     _uut.ListOfItemGroups.Add(new ItemGroup("test2", (long)0, (long)1));
     _uut.ListOfItemGroups.Add(new ItemGroup("test3", (long)0, (long)2));
     _uut.ListOfItemGroups.CurrentIndex = 1;
     _uut.ItemGroupName = "Test";
     _uut.EditItemGroupCommand.Execute(null);
     _mb.Received(1).OpenMessageBox("Varegruppens navn er blevet opdateret til Test");
 }
 public void ItemViewModel_CreateItemCommand_CreateNewItemWithAcceptedName_MessageBoxShowsItemCreated()
 {
     _uut.ItemName = "test";
     _uut.CreateItemCommand.Execute(null);
     _mb.Received(1).OpenMessageBox(Arg.Any <string>());
 }