Esempio n. 1
0
        public void GetById_ValidObjectId_ShouldReturnSingleGigInList()
        {
            _gigRepository.Add(_testGigOne);
            // This has the same details but a different Id to the above
            _gigRepository.Add(TestGigOne());

            // Perform
            var result = _gigRepository.GetById(_testGigOne.Id);

            // Verify
            GigAssertor.New()
            .Expected(_testGigOne)
            .Actual(result)
            .DoAssert();
        }