public void ShouldBeSetAsInactiveWhenEvaluatedAsEfficient() { Nonconformity nonconformity = new Nonconformity("Controlled materials stored without proper indication."); nonconformity.setAsEfficient(); Assert.Equal(StatusEnum.Inactive, nonconformity.Status); }
public void UpdateAsEfficient(int id) { Nonconformity nonconformity = _context.Nonconformities.FirstOrDefault(p => p.Id == id); nonconformity.setAsEfficient(); _context.Nonconformities.Update(nonconformity); _context.SaveChanges(); }