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(); }
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(); }