Пример #1
0
 public void MakeOneGnome()
 {
     Cell position = CellRepository.GetByCoord(0, 0, 0);
     Gnome gnome = new Gnome { Name = "Vasya", UserName = "******", Position = position };
     GnomeRepository.Add(gnome);
     GnomeRepository.UnitOfWork.SaveChanges();
 }
 public void AddActionToEnd(Gnome gnome, GnomeAction actionToAdd, GnomeAction lastAction)
 {
     gnome.GnomeActions.Add(actionToAdd);
     actionToAdd.PreviousAction = lastAction;
 }