public void PruebaParaValidarQueSeEncuentraUnaCondicion() { // Arrange var condition = new Condition(); var id = new int(); condition = null; // Act var conditionDomainService = new ConditionDomainService(); var resultado = conditionDomainService.GetConditionDomainService(id, condition); // Assert Assert.AreEqual("No se encontro la Condicion", resultado); }
public async Task <String> GetConditionApplicationService(int id) { var condition = await _baseDatos.Conditions.FirstOrDefaultAsync(q => q.Id == id); var respuestaDomainService = _conditionDomainService.GetConditionDomainService(id, condition); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } return(null); }
public void WhenBuscaLaCondicion() { var conditionDomainService = new ConditionDomainService(); _resultado = conditionDomainService.GetConditionDomainService(id, _condition); }