// InsertOne provides a mock function with given fields: ctx, collection, bson
InsertOne provides a mock function with given fields: ctx, collection, bson
// InsertOne provides a mock function with given fields : ctx collection bson
func (_m *MockCntrInterface) InsertOne(ctx context.Context, collection *mongo.Collection, bson []byte) (*mongo.InsertOneResult, error) {
	ret := _m.Called(ctx, collection, bson)
	var r0 *mongo.InsertOneResult
	if rf, ok := ret.Get(0).(func(context.Context, *mongo.Collection, []byte) *mongo.InsertOneResult); ok {
		r0 = rf(ctx, collection, bson)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*mongo.InsertOneResult)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *mongo.Collection, []byte) error); ok {
		r1 = rf(ctx, collection, bson)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func ( _m * MockCntrInterface ) InsertOne ( ctx context . Context , collection * mongo . Collection , bson [ ] byte ) ( * mongo . InsertOneResult , error ) { ret := _m . Called ( ctx , collection , bson ) var r0 * mongo . InsertOneResult if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * mongo . Collection , [ ] byte ) * mongo . InsertOneResult ) ; ok { r0 = rf ( ctx , collection , bson ) } else { if ret . Get ( 0 ) != nil { r0 = ret . Get ( 0 ) . ( * mongo . InsertOneResult ) } } var r1 error if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * mongo . Collection , [ ] byte ) error ) ; ok { r1 = rf ( ctx , collection , bson ) } else { r1 = ret . Error ( 1 ) } return r0 , r1 }
InsertOne provides a mock function with given fields: ctx, collection, bson
InsertOne provides a mock function with given fields : ctx collection bson