public BodegaDto AddBodega(BodegaDto bodega) { Bodega b = _bodega.Create <Bodega>(DtoABodega(bodega)); bodega.Id = b.Id; _notificacionService.NotificacionIngresado(b.Unidades, b); _logService.LogInventario(String.Format(StringEnum.GetStringValue(MensajeNotificaciones.Ingreso), bodega.Unidades, bodega.Botella.Descripcion)); return(bodega); }
public void NotificacionIngresadoNotThrow() { //Arrange Bodega bodega = new Bodega() { Botella = new Botella() { Caducidad = DateTime.Today, Vino = new Vino() { Nombre = "nombre" } } }; try { _service.NotificacionIngresado(1, bodega); Assert.IsTrue(true); } catch { Assert.IsTrue(false); } }