コード例 #1
0
        public void GetEmptyConsorcios()
        {
            ConsorcioRepository repository = new ConsorcioRepository();

            var result = repository.GetList();

            Assert.IsNotNull(result);
            Assert.AreEqual(0, result.Count);
        }
コード例 #2
0
        public void AddConsorcio()
        {
            ConsorcioRepository repository = new ConsorcioRepository();
            Consorcio consorcio = new Consorcio() { Nombre = "Primero" };
            repository.Add(consorcio);
            var result = repository.GetList();

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Count);
            Assert.AreEqual(consorcio.Nombre, result[0].Nombre);
            Assert.AreEqual(1, result[0].Id);
        }