public void PruebaParaValidarQueSeEncuentraUnaCondicion3() { // Arrange var condition = new Condition(); var id = new int(); condition = null; // Act var conditionDomainService = new ConditionDomainService(); var resultado = conditionDomainService.DeleteConditionDomainService(id, condition); // Assert Assert.AreEqual("No se encontro la Condicion", resultado); }
public async Task <String> DeleteConditionsApplicationService(int id) { var condition = await _baseDatos.Conditions.FindAsync(id); var respuestaDomainService = _conditionDomainService.DeleteConditionDomainService(id, condition); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } _baseDatos.Conditions.Remove(condition); await _baseDatos.SaveChangesAsync(); return(null); }
public void WhenEliminarLaCondicion() { var conditionDomainService = new ConditionDomainService(); _resultado = conditionDomainService.DeleteConditionDomainService(id, _condition); }