Ejemplo n.º 1
0
        public void Should_create_a_logging_factory()
        {
            var program = new Program();

            program.GetFactoryTypeName = () => typeof(LoggingFactoryStub).FullName + "," + GetType().Assembly.FullName;
            IJobAgentFactory factory = program.Factory();

            Assert.AreEqual("BatchJobs.UnitTests.LoggingFactoryStub", factory.GetType().ToString());
        }
Ejemplo n.º 2
0
        public void Should_create_a_factory()
        {
            var program = new Program();

            program.GetFactoryTypeName = () => typeof(FactoryStub).FullName + "," + GetType().Assembly.FullName;
            IJobAgentFactory factory = program.Factory();

            Assert.IsAssignableFrom(typeof(FactoryStub), factory);
        }