Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public object InsertChild(ClientRedirectUri child)
 {
     return(Insert(child));
 }
Exemplo n.º 4
0
 public async Task <object> InsertChildAsync(ClientRedirectUri child)
 {
     return(await InsertAsync(child));
 }