public async Task DeletePlayerCommand_Can_Delete_Player()
        {
            using (var dbContext = GetDbContext("DeletePlayerCommand_Can_Delete_Player"))
            {
                var fakeRepo = new PlayerRepository(dbContext);
                await fakeRepo.AddAsync(new Domain.Entities.Player
                {
                    Name         = "FirstName",
                    Surname      = "LastName",
                    Height       = 1.98,
                    EmailAddress = "*****@*****.**"
                });
            }

            using (var dbContext = GetDbContext("DeletePlayerCommand_Can_Delete_Player"))
            {
                var fakeRepo   = new PlayerRepository(dbContext);
                var fakeLogger = new Mock <ILogger <DeletePlayerCommandHandler> >();
                var handler    = new DeletePlayerCommandHandler(fakeRepo, GetMapper(), fakeLogger.Object);

                var command = new DeletePlayerCommand
                {
                    Id = 1,
                };

                var result = await handler.Handle(command, default);

                Assert.False(result.Notifications.HasErrors());

                Assert.Equal(command.Id, result.PlayerDeleteModel.Id);
                Assert.Equal(Domain.Enumerations.EnumBag.DataState.Inactive, result.PlayerDeleteModel.DataState);
            }
        }
 public void SetUp()
 {
     _sut = new DeletePlayerCommandHandler(Context, NullLogger <DeletePlayerCommandHandler> .Instance);
 }