public void LogsInvalidGet()
        {
            var repository = new RecipeRepositoryUsingNew();

            repository.Invoking(r => r.Get(Guid.NewGuid())).ShouldThrow <ArgumentException>();

            repository.Log.Get().Should().HaveCount(1);
        }
        public void LogsTimeOnInvalidGet()
        {
            var repository = new RecipeRepositoryUsingNew();

            repository.Invoking(r => r.Get(Guid.NewGuid())).ShouldThrow <ArgumentException>();

            var entry = repository.Log.Get().First();

            Math.Abs((entry.Time - DateTime.Now).TotalSeconds).Should().BeLessThan(1);
        }
        public void ThrowsOnInvalidGet()
        {
            var repository = new RecipeRepositoryUsingNew();

            repository.Invoking(r => r.Get(Guid.NewGuid())).ShouldThrow <ArgumentException>();
        }