public Raspberry Insert(Raspberry entity) { entity = _accessor.Insert(entity); return(entity); }
public RaspberryResponseModel Get(long id) { Raspberry dtoItem = _raspberryService.Get(id); RaspberryResponseModel item = ModelBinder.Instance.ConvertToRaspberryResponseModel(dtoItem); return item; }
public Raspberry Get(long id) { Raspberry raspberryItem = _accessor.Get <Raspberry>(x => x.IsActive && x.Id == id); return(raspberryItem); }
public void CheckRaspberry(Raspberry r) { Assert.AreEqual(r.fruitType, 1); Assert.AreEqual(r.numBulbs, 27); }