func (c *fakeResDef) Create(resDef *client.ResourceDefinition) (result *client.ResourceDefinition, err error) {
	obj, err := c.fake.
		Invokes(testing.NewCreateAction(resdefResource, c.ns, resDef), &client.ResourceDefinition{})
	if obj == nil {
		return nil, err
	}
	return obj.(*client.ResourceDefinition), err
}
Create creates new Definition object in fake K8s
package mocks
import (
	"github.com/Mirantis/k8s-AppController/pkg/client"
	"k8s.io/client-go/pkg/api"
	"k8s.io/client-go/pkg/api/unversioned"
	"k8s.io/client-go/pkg/labels"
	"k8s.io/client-go/testing"
)
type fakeResDef struct {
	fake *testing.Fake
	ns   string
}
var resdefResource = unversioned.GroupVersionResource{
	Group:    "appcontroller.k8s",
	Version:  "v1alpha1",
	Resource: "definitions",
}