public void Can_Add_New_PriceList()
        {
            var priceList = CreateFakePriceListObject();

            nHibernateUniversalRepositoryPriceLists.Create(priceList);

            Assert.AreNotEqual(priceList.Id, 0);
            nHibernateUniversalRepositoryPriceLists.DeleteById(priceList.Id);
        }
        public void Can_Add_New_Quotation()
        {
            var quotation = CreateFakeQuotationObject();

            nHibernateUniversalRepositoryQuotation.Create(quotation);
            Assert.AreNotEqual(quotation.Id, 0);
            nHibernateUniversalRepositoryQuotation.DeleteById(quotation.Id);
        }
Exemplo n.º 3
0
        public void can_add_new_document()
        {
            documentsRepository.Create(fakeDocument);

            var addedDocument = documentsRepository.GetById(fakeDocument.Id);

            Assert.AreEqual(fakeDocument.Guid, addedDocument.Guid);
            Assert.AreEqual(fakeDocument.Code, addedDocument.Code);
            Assert.AreEqual(fakeDocument.Created, addedDocument.Created);
            Assert.AreEqual(fakeDocument.Link, addedDocument.Link);
            Assert.AreEqual(fakeDocument.Creator, addedDocument.Creator);
            //Assert.AreNotEqual(fakeDocument.Modified, addedDocument.Modified);

            documentsRepository.DeleteById(fakeDocument.Id);
        }