예제 #1
0
        public async void ShouldBeNotRepeated()
        {
            PetFinderContext context       = dbContextFactory.CreateContext();
            GenderService    genderService = new GenderService(context);

            string notRepeatedName = "Masculino";
            bool   isValid         = await genderService.IsRepeated(notRepeatedName);

            // Deberia ser falso ya que la cadena tiene 21 caracteres, siendo el maximo 20
            Assert.False(isValid);
        }