Example #1
0
        public async Task CanResolveGeneric()
        {
            var container = new FeatureContainer();
            var repo      = container.Resolve <IEntityRepository <Foo> >();

            container.Resolve <ITableRepository <Foo> >();

            await repo.PutAsync(new Foo { Id = "Bar", Value = "Baz" });
        }
Example #2
0
        public async Task CanPushRepositoryEventsToGrid()
        {
            var container = new FeatureContainer();

            await CloudStorageAccount.DevelopmentStorageAccount.ClearStorageAsync();

            var repo = container.Resolve <IPersonRepository>();

            await repo.PutAsync(Constants.Donor.Create());

            var person = await repo.GetAsync <Donor>(Constants.Donor.Id, false);

            person.Donate(500);

            await repo.PutAsync(person);
        }