Ejemplo n.º 1
0
        public void GetByID_EntityNotFound()
        {
            this.mockRepository.Setup(x => x.GetByID(It.IsAny <object>()));

            var services = new BidderService(this.mockRepository.Object);

            services.GetByID(0).Should().BeNull();
        }
Ejemplo n.º 2
0
        public void InsertBidderShouldNotFail()
        {
            person.Id          = userProfile.Id;
            person.UserProfile = userProfile;
            person.Bidder      = bidder;
            bidder.Id          = person.Id;
            bidder.Person      = person;
            var failed = bidderServices.Insert(bidder);

            var dbBidder = bidderServices.GetByID(bidder.Id);

            Assert.AreEqual(bidder, dbBidder);
        }