BeforeEach(func() {
		context = &fakes.Context{}

		logger = lagertest.NewTestLogger("test")
		context.LoggerReturns(logger)

		sandboxRepository = &fakes.SandboxRepository{}
		context.SandboxRepositoryReturns(sandboxRepository)

		createSandbox = commands.CreateSandbox{
			Name: "my-namespace",
		}

		sbox = &fakes.Sandbox{}
		sandboxRepository.CreateReturns(sbox, nil)
	})

	It("creates the sandbox in the repository", func() {
		err := createSandbox.Execute(context)
		Expect(err).NotTo(HaveOccurred())

		Expect(sandboxRepository.CreateCallCount()).To(Equal(1))
		Expect(sandboxRepository.CreateArgsForCall(0)).To(Equal("my-namespace"))
	})

	Context("when creating the sandbox fails", func() {
		BeforeEach(func() {
			sandboxRepository.CreateReturns(nil, errors.New("welp"))
		})