Ejemplo n.º 1
0
        public async Task <IState> GetNextStateAsync()
        {
            Console.WriteLine("ReceivedState started");
            var mappings = await _mappingRepository.GetAsync(_inboundMessage.AccountId, _inboundMessage.EntityId);

            return(mappings == null
                ? _container.Resolve <NotExistsInDbState>().WithParameters(_inboundMessage) as IState
                : _container.Resolve <ExistsInDbState>().WithParameters(mappings, _inboundMessage));
        }