public void DeleteToggleAsync_WithoutId()
        {
            var unitoOfWorkMock = new Mock <IUnitOfWork <DbContext> >();
            var repositoryMock  = new Mock <IRepository <Toggle> >();

            var repositoryFactoryMock = new Mock <IRepositoryFactory>();

            repositoryFactoryMock.Setup(r => r.CreateRepository <Toggle>(unitoOfWorkMock.Object)).Returns(repositoryMock.Object);

            var manager = new ToggleBusinessManager(unitoOfWorkMock.Object, repositoryFactoryMock.Object);

            manager.DeleteToggle(string.Empty);
        }
        public void DeleteToggleAsync_ToogleIdNotExists()
        {
            var toggle          = ToggleFakeData.GetToggle1();
            var unitoOfWorkMock = new Mock <IUnitOfWork <DbContext> >();
            var repositoryMock  = new Mock <IRepository <Toggle> >();

            repositoryMock.Setup(r => r.GetById(toggle.Id)).Returns(default(Toggle));

            var repositoryFactoryMock = new Mock <IRepositoryFactory>();

            repositoryFactoryMock.Setup(r => r.CreateRepository <Toggle>(unitoOfWorkMock.Object)).Returns(repositoryMock.Object);

            var manager = new ToggleBusinessManager(unitoOfWorkMock.Object, repositoryFactoryMock.Object);

            manager.DeleteToggle(toggle.Id);
        }