Esempio n. 1
0
        public async void success_null_customer()
        {
            var store = new InMemoryCustomerManagmentStore();
            var c     = await store.GetCustomerAsync(GuidS);

            c.Should().BeNull();
        }
Esempio n. 2
0
        public async void success_upsert_and_remove()
        {
            var store    = new InMemoryCustomerManagmentStore();
            var customer = CreateRandomCustomer();

            await store.UpsertCustomerAsync(customer);

            var c = await store.GetCustomerAsync(customer.Id);

            c.Should().NotBeNull();
            c.Should().BeSameAs(customer);

            await store.RemoveCustomerAsync(c.Id);

            c = await store.GetCustomerAsync(customer.Id);

            c.Should().BeNull();
        }