コード例 #1
0
ファイル: BrokerRepositoryTests.cs プロジェクト: UHgEHEP/test
        public void Test_BrokerRepository_Get()
        {
            var all = _repository.GetAll();

            var broker = _repository.Get(TestConstants.TestBrokerId);

            var data = all.First(x => x.Id == TestConstants.TestBrokerId);

            data.ShouldBeEquivalentTo(broker);

            var byUserId = _repository.GetByUserId(broker.UserId);

            data.ShouldBeEquivalentTo(byUserId);
        }