public void Delete(string name) { Contract.Requires <ArgumentException>(!string.IsNullOrWhiteSpace(name)); _repository.RemoveByName(name); }