コード例 #1
0
        public void Person_GetName_NotFirstName()
        {
            var message   = $"No se ingreso el nombre";
            var firstName = "";
            var lastName  = "gutierrez";

            var personApplication = new PersonApplication(new PersonRepository());
            var result            = personApplication.GetCompleteName(firstName, lastName);

            Assert.True(result == message);
        }
コード例 #2
0
        public void Person_GetName_Success()
        {
            var resultado = $"walberth gutierrez";
            var firstName = "walberth";
            var lastName  = "gutierrez";

            var personApplication = new PersonApplication(new PersonRepository());
            var result            = personApplication.GetCompleteName(firstName, lastName);

            Assert.True(result == resultado);
        }