public async void ProducerRegistrationExists_ForUnknownOrNullProducerRegistrationNumber_ReturnsFalse(string producerRegistrationNumber)
        {
            using (var database = new DatabaseWrapper())
            {
                var dataAccess = new GenerateFromXmlDataAccess(database.WeeeContext);
                var result     = await dataAccess.ProducerRegistrationExists(producerRegistrationNumber);

                Assert.False(result);
            }
        }
        public async void ProducerRegistrationExists_ForMatchingProducerRegistrationNumber_WithoutProducerSubmission_ReturnsFalse()
        {
            using (var database = new DatabaseWrapper())
            {
                var helper = new ModelHelper(database.Model);

                var scheme = helper.CreateScheme();

                var registeredProducer = new RegisteredProducer();
                registeredProducer.Scheme = scheme;
                registeredProducer.ProducerRegistrationNumber = "1234";

                database.Model.RegisteredProducers.Add(registeredProducer);
                database.Model.SaveChanges();

                var dataAccess = new GenerateFromXmlDataAccess(database.WeeeContext);
                var result     = await dataAccess.ProducerRegistrationExists("1234");

                Assert.False(result);
            }
        }
        public async void ProducerRegistrationExists_ForMatchingProducerRegistrationNumber_ReturnsTrue()
        {
            using (var database = new DatabaseWrapper())
            {
                var helper = new ModelHelper(database.Model);

                var scheme = helper.CreateScheme();

                var memberUpload = helper.CreateMemberUpload(scheme);
                memberUpload.ComplianceYear = 2016;
                memberUpload.IsSubmitted    = true;

                helper.CreateProducerAsCompany(memberUpload, "1234");

                database.Model.SaveChanges();

                var dataAccess = new GenerateFromXmlDataAccess(database.WeeeContext);
                var result     = await dataAccess.ProducerRegistrationExists("1234");

                Assert.True(result);
            }
        }