Exemplo n.º 1
0
        public void Given_Component_When_CreateConditionBuilder_Then_ConditionBuilderInstanceReturned()
        {
            // Arrange
            var store  = A.Fake <IStore>();
            var sink   = A.Fake <IEventMonitorSink>();
            var client = A.Fake <IIdSvr4Client>();

            var component = new IdSvr4Component(store, sink, client);

            // Act
            var builder = component.CreateConditionBuilder <IdSvr4ConditionBuilder>();

            Assert.That(builder, Is.Not.Null);
        }
Exemplo n.º 2
0
        public void Given_Component_When_CreateClient_Then_ClientInstanceReturned()
        {
            // Arrange
            var store  = A.Fake <IStore>();
            var sink   = A.Fake <IEventMonitorSink>();
            var client = A.Fake <IIdSvr4Client>();

            var component = new IdSvr4Component(store, sink, client);

            // Act
            var resultClient = component.CreateClient();

            Assert.That(resultClient, Is.Not.Null);
            Assert.That(resultClient, Is.SameAs(client));
        }
Exemplo n.º 3
0
        public void Given_Component_When_CreateConfigurationSpecification_Then_SpecInstanceReturned()
        {
            // Arrange
            var store  = A.Fake <IStore>();
            var sink   = A.Fake <IEventMonitorSink>();
            var client = A.Fake <IIdSvr4Client>();

            var component = new IdSvr4Component(store, sink, client);

            var factory = A.Fake <IEventHandlerFactory>();

            // Act
            var spec = component.CreateConfigurationSpecification <IdSvr4Specification>(factory);

            Assert.That(spec, Is.Not.Null);
        }