public void CuandoCreateArea()
        {
            //Arrange
            Area area = new Area {
                Nombre = "Redes", Descripcion = "Infraestructuras de Redes"
            };
            //Act
            IAreaServices areaServices = Substitute.For <IAreaServices>();
            var           result       = areaServices.CreateArea(area);

            //Assert
            Assert.IsNotNull(result);
        }
Ejemplo n.º 2
0
 public async Task <int> CreateArea(Area area)
 {
     return(await _areaServices.CreateArea(area));
 }