public FireSensorTest()
        {
            var builder = new ContainerBuilder();

            builder.RegisterType <SensorInAuditorium>().As <ILocationProvider>();
            builder.RegisterType <FireSensor>().As <IBatterySensor>();
            Container = builder.Build();

            AuditorProv = Container.Resolve <ILocationProvider>();
            FireSensor  = Container.Resolve <IBatterySensor>();
            Assert.AreEqual(FireSensor.Location, AuditorProv.Location);
        }
        public SmokeSensorTest()
        {
            var builder = new ContainerBuilder();

            builder.RegisterType <SensorAtFrontDoor>().As <ILocationProvider>();

            builder.RegisterType <SmokeSensor>().As <IBatterySensor>();
            Container = builder.Build();

            FrontDoor   = Container.Resolve <ILocationProvider>();
            SmokeSensor = Container.Resolve <IBatterySensor>();
            Assert.AreEqual(SmokeSensor.Location, FrontDoor.Location);
        }