public void ShouldBeSetAsInactiveWhenEvaluatedAsEfficient()
        {
            Nonconformity nonconformity = new Nonconformity("Controlled materials stored without proper indication.");

            nonconformity.setAsEfficient();
            Assert.Equal(StatusEnum.Inactive, nonconformity.Status);
        }
Exemplo n.º 2
0
        public void UpdateAsEfficient(int id)
        {
            Nonconformity nonconformity = _context.Nonconformities.FirstOrDefault(p => p.Id == id);

            nonconformity.setAsEfficient();
            _context.Nonconformities.Update(nonconformity);
            _context.SaveChanges();
        }