Example #1
0
        public void ParseBedrijf_ValidInputParameters_ReturnsBedrijf()
        {
            //Arrange
            var name        = ParameterBuilder.String();
            var adress      = ParameterBuilder.String();
            var postalCode  = ParameterBuilder.Int();
            var city        = ParameterBuilder.String();
            var phoneNumber = ParameterBuilder.String();
            var email       = ParameterBuilder.String();
            var handShake   = ParameterBuilder.Bool();

            //Act
            var result = _parseService.ParseBedrijf
                             (name, adress, postalCode, city, phoneNumber, email, handShake) as Bedrijf;

            //Assert
            Assert.That(result.Bedrijfsnaam, Is.EqualTo(name));
            Assert.That(result.Adres, Is.EqualTo(adress));
            Assert.That(result.Postcode, Is.EqualTo(postalCode));
            Assert.That(result.Gemeente, Is.EqualTo(city));
            Assert.That(result.Telefoonnummer, Is.EqualTo(phoneNumber));
            Assert.That(result.Email, Is.EqualTo(email));
            Assert.That(result.AanwezigheidHandshake, Is.EqualTo(handShake));
        }