示例#1
0
 public void Alta(Sala Sala)
 {
     try
     {
         _SalaRepository.Add(Sala);
         _SalaRepository.Save();
     }
     catch (Exception ex)
     {
         Log.Error(ex.ToString());
     }
 }
        public void Save_Deveria_Gravar_Uma_Nova_Sala()
        {
            //Action-Arrange
            Sala resultSala = _salaRepository.Save(_salaDefault);

            //Assert
            Sala resultGet = _salaRepository.Get(resultSala.Id);

            resultSala.Should().NotBeNull();
            resultGet.Should().NotBeNull();
            resultGet.Id.Should().Be(resultSala.Id);
        }