public async Task NoAlias_IndexGet_NotFound()
        {
            using (IdentityWsDbContext ef = CreateEf()) {
                AliasesController patient = new AliasesController(ef, dummyLog, now, dummyRunner);

                IActionResult result = await patient.Index("*****@*****.**");

                result.Should().BeOfType <NotFoundResult>("the alias does not exist in the database");
            }
        }
        public async Task UnconfirmedAlias_Index_ConfirmationToken()
        {
            using (IdentityWsDbContext ef = CreateEf()) {
                ef.Aliases.Add(new Alias {
                    EmailAddress = "*****@*****.**"
                });
                await ef.SaveChangesAsync();

                AliasesController patient = new AliasesController(ef, dummyLog, now, dummyRunner);

                IActionResult result = await patient.Index("*****@*****.**");

                result.Should().BeOfType <JsonResult>()
                .Which.Value.Should().BeOfType <Dictionary <string, string> >()
                .Which["confirmToken"].Should().NotBeNull("the alias has not yet been confirmed");
            }
        }