Ejemplo n.º 1
0
        public void ShouldBeMissingDataAsync()
        {
            PetFinderContext context = dbContextFactory.CreateContext();
            Pet           pet        = new Pet();
            PetService    petService = new PetService(context);
            List <string> errors     = petService.CheckPet(pet);

            //Deberia dar 6 errores
            Assert.Equal <int>(6, errors.Count);
        }