public void Find_OK2()
        {
            Func <Entities>            contextCreator = () => new Entities();
            DataResponseHandler <Firm> result         = instance.GetById(pks: "5798-403c-a941-dcfaa6bacd2c");

            if (result.Succes == false)
            {
                Assert.AreEqual(result.Succes, false);
                return;
            }
            else
            {
                Assert.AreEqual(result.Container.FirmId, "05d68886-5798-403c-a941-dcfaa6bacd2c");
            }
        }
Exemplo n.º 2
0
        public LogicResponseHandler <Recruiter> GetById(string id)
        {
            var result = _repo.GetById(id);

            if (result.Succes)
            {
                return(new LogicResponseHandler <Recruiter> {
                    Content = result.Container, Status = result.Succes
                });
            }
            else
            {
                return(new LogicResponseHandler <Recruiter> {
                    Status = false
                });
            }
        }