Esempio n. 1
0
 public void U_IMessageWriter_CreateTodaysRepository_Trigered()
 {
     var persister = PreparePersister();
     var message = new MessagePersisterComponent.Message(Guid.NewGuid(), "test", "test");
     persister.Persist(message);
     _moqfileworker.Verify(t => t.CreateTodaysRepository());
 }
Esempio n. 2
0
 public void U_IMessageWriter_CreateNewMessageEntry_Trigered()
 {
     var persister = PreparePersister();
     var message = new MessagePersisterComponent.Message(Guid.NewGuid(), "test", "test");
     persister.Persist(message);
     _moqfileworker.Verify(
         t => t.CreateNewMessageEntry(It.Is<MessagePersisterComponent.Message>(o => o.Name == "test")));
 }
Esempio n. 3
0
        public void U_IMessageWriter_CreateTodaysRepository_Trigered()
        {
            var persister = PreparePersister();
            var message   = new MessagePersisterComponent.Message(Guid.NewGuid(), "test", "test");

            persister.Persist(message);
            _moqfileworker.Verify(t => t.CreateTodaysRepository());
        }
Esempio n. 4
0
 public void U_Formater_FormatMessage_Trigered()
 {
     var persister = new AsyncMessagePersister(new FileMessageWriter(_formaterMock.Object));
     var message = new MessagePersisterComponent.Message(Guid.NewGuid(), "test", "test");
     persister.Persist(message);
     persister.Stop();
     _formaterMock.Verify(
         t => t.FormatMessage(It.IsAny<MessagePersisterComponent.Message>()));
 }
Esempio n. 5
0
        public void U_IMessageWriter_CreateNewMessageEntry_Trigered()
        {
            var persister = PreparePersister();
            var message   = new MessagePersisterComponent.Message(Guid.NewGuid(), "test", "test");

            persister.Persist(message);
            _moqfileworker.Verify(
                t => t.CreateNewMessageEntry(It.Is <MessagePersisterComponent.Message>(o => o.Name == "test")));
        }
Esempio n. 6
0
        public void U_Formater_FormatMessage_Trigered()
        {
            var persister = new AsyncMessagePersister(new FileMessageWriter(_formaterMock.Object));
            var message   = new MessagePersisterComponent.Message(Guid.NewGuid(), "test", "test");

            persister.Persist(message);
            persister.Stop();
            _formaterMock.Verify(
                t => t.FormatMessage(It.IsAny <MessagePersisterComponent.Message>()));
        }