コード例 #1
0
ファイル: Tests.cs プロジェクト: pthibodeaux/Scaffolding_2
        public async Task Get_Should_Load_Object_By_Identity_Async()
        {
            ParentModel parent = await _repo.GetOnlyParentByNameAsync("crm");

            parent = _repo.GetParentById(parent.Id);
            ClientRedirectUri uri = await _repo.GetAsync <ClientRedirectUri>(parent.Children.First().ClientRedirectUriId);

            parent.Should().NotBeNull();
            parent.Children.Should().NotBeNullOrEmpty();
            uri.Should().NotBeNull();
        }
コード例 #2
0
ファイル: Tests.cs プロジェクト: pthibodeaux/Scaffolding_2
        public void Get_Should_Load_Object_By_Identity()
        {
            ParentModel parent = _repo.GetOnlyParentByName("crm");

            parent = _repo.GetParentById(parent.Id);
            ClientRedirectUri uri = _repo.Get <ClientRedirectUri>(parent.Children.First().ClientRedirectUriId);

            parent.Should().NotBeNull();
            parent.Children.Should().NotBeNullOrEmpty();
            uri.Should().NotBeNull();
        }
コード例 #3
0
 public object InsertChild(ClientRedirectUri child)
 {
     return(Insert(child));
 }
コード例 #4
0
 public async Task <object> InsertChildAsync(ClientRedirectUri child)
 {
     return(await InsertAsync(child));
 }