public async void ShouldOpenBankAccountAndSaveEntity()
        {
            var entityStore = new Mock <IEntityStore>();
            var handler     = new OpenBankAccountHandler(entityStore.Object);
            var command     = new OpenBankAccountCommand
            {
                Name = "Bob Smith"
            };

            await handler.Handle(command);

            entityStore.Verify(m => m.Save(It.IsAny <BankAccount>()));
        }
        public async void ShouldReturnAccountIdOnSuccess()
        {
            var entityStore = new Mock <IEntityStore>();
            var handler     = new OpenBankAccountHandler(entityStore.Object);
            var command     = new OpenBankAccountCommand
            {
                Name = "Jane Smith"
            };

            var result = await handler.Handle(command);

            result.Success.Should().Be(true);
            result.Value.Value.GetType().Should().Be(typeof(Guid));
        }