Exemple #1
0
        public void Add_SingleValidGig_ShouldBeInsertedIntoDatabase()
        {
            // Perform
            _gigRepository.Add(_testGigOne);

            // Verify - retrived via test code, not production code
            var retrivedGig = _mongoDatabaseUtilities.FindRecordById(_testGigOne.Id);

            GigAssertor.New()
            .Expected(_testGigOne)
            .Actual(retrivedGig[0])
            .DoAssert();
        }