Ejemplo n.º 1
0
        public static ItemModel Create()
        {
            var title = "test_item_" + Rand.SmallInt();

            ItemModel.Create(
                title,
                Rand.SmallInt() * 0.05
                );
            return(ItemRepository.FindByTitle(title));
        }
Ejemplo n.º 2
0
 public static ItemModel FindByTitle(string title) => ItemModel.FindByTitle(title);
Ejemplo n.º 3
0
 public static ItemModel FindByGuid(string guid) => ItemModel.FindByGuid(guid);
Ejemplo n.º 4
0
 public static ItemModel Find(int id) => ItemModel.Find(id);
Ejemplo n.º 5
0
 public static int Create(string title, double price) =>
 ItemModel.Create(title, price);
Ejemplo n.º 6
0
        public static ItemModel CreateAndGet(string title, double price)
        {
            var id = Create(title, price);

            return(ItemModel.Find(id));
        }
Ejemplo n.º 7
0
 public static int Count() => ItemModel.Count();
Ejemplo n.º 8
0
 public static ItemModel FindByGuid(string guid)
 {
     return(ItemModel.FindByGuid(guid));
 }
Ejemplo n.º 9
0
 public static ItemModel Find(int id)
 {
     return(ItemModel.Find(id));
 }
Ejemplo n.º 10
0
 public static int Create(string title, double price)
 {
     return(ItemModel.Create(title, price));
 }
Ejemplo n.º 11
0
 public static ItemModel CreateAndGet(string title, double price)
 {
     return(ItemModel.Find(Create(title, price)));
 }
Ejemplo n.º 12
0
 public static int Count()
 {
     return(ItemModel.Count());
 }
Ejemplo n.º 13
0
 public static ItemModel FindByTitle(string title)
 {
     return(ItemModel.FindByTitle(title));
 }