Example #1
0
        public StandaloneTestFixture(IClient client)
        {
            Client  = client;
            TestKey = Guid.NewGuid().ToString();

            _environment = new AutoCleanup(Client, async c =>
            {
                TestApplication = await c.CreateApplicationAsync($"Stormpath.Owin IT {TestKey}", true);
                TestDirectory   = await TestApplication.GetDefaultAccountStoreAsync() as IDirectory;
                return(new IResource[] { TestApplication, TestDirectory });
            });
        }