コード例 #1
0
        public void HeliumConstructSqlQueryMessage_GivenValidMessage_ShouldHandleMessage()
        {
            //---------------Set up test pack-------------------
            var actorRef            = CreateActor();
            var heliumFakeDataModel = new HeliumFakeDataModel
            {
                Id          = Guid.NewGuid(),
                Description = RandomValueGenerator.CreateRandomString(1, 10),
                IsActive    = RandomValueGenerator.CreateRandomBoolean()
            };
            var sqlQueryMessage = new HeliumConstructSqlQueryMessage(HeliumAction.Insert, heliumFakeDataModel);

            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            actorRef.Tell(sqlQueryMessage);
            //---------------Test Result -----------------------
            var resultMessage = ExpectMsg <HeliumConstructSqlQueryResultMessage>();

            resultMessage.Should().NotBeNull();
        }