Ejemplo n.º 1
0
        public void EinladenderVermittlerExistiertNicht_NotFoundException()
        {
            GetEinladecodeValiditätQuery query = new GetEinladecodeValiditätQuery()
            {
                //Vermittler Id = 1 in diesem Code
                Code = "WgAA55grJGAGagrL2k0fsA=="
            };

            FluentActions.Invoking(async() =>
                                   await SendAsync(query)).Should().Throw <NotFoundException>()
            .WithMessage("Vermittler des Einladecodes existiert nicht mehr auf unserer DB");
        }
Ejemplo n.º 2
0
        public async Task NotAESInteger_ShouldReturnBadRequest()
        {
            var einladecode = await CreateEinladenderVermittlerAsync();

            GetEinladecodeValiditätQuery query = new GetEinladecodeValiditätQuery()
            {
                Code = "yGeknLRHbugIBwracz5cgg=="
            };

            FluentActions.Invoking(async() =>
                                   await SendAsync(query)).Should().Throw <BadRequestException>()
            .WithMessage("Einladecode ist invalide.");
        }
Ejemplo n.º 3
0
        public async Task ReturnOk()
        {
            var einladecode = await CreateEinladenderVermittlerAsync();

            GetEinladecodeValiditätQuery query = new GetEinladecodeValiditätQuery()
            {
                Code = einladecode.Code
            };

            Unit result = await SendAsync(query);

            result.Should().BeOfType <Unit>();
        }