コード例 #1
0
 public Raspberry Insert(Raspberry entity)
 {
     entity = _accessor.Insert(entity);
     return(entity);
 }
コード例 #2
0
 public RaspberryResponseModel Get(long id) {
     Raspberry dtoItem = _raspberryService.Get(id);
     RaspberryResponseModel item = ModelBinder.Instance.ConvertToRaspberryResponseModel(dtoItem);
     return item;
 }
コード例 #3
0
        public Raspberry Get(long id)
        {
            Raspberry raspberryItem = _accessor.Get <Raspberry>(x => x.IsActive && x.Id == id);

            return(raspberryItem);
        }
コード例 #4
0
 public void CheckRaspberry(Raspberry r)
 {
     Assert.AreEqual(r.fruitType, 1);
     Assert.AreEqual(r.numBulbs, 27);
 }